Skip to content

Commit 8aefe19

Browse files
committed
feat(button): rename attribute downloadFilename to download
1 parent 4098832 commit 8aefe19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

button/internal/button.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export abstract class Button extends buttonBaseClass implements FormSubmitter {
7272
* If not specified, the browser will determine a filename.
7373
* This is only applicable when the button is used as a link (`href` is set).
7474
*/
75-
@property() downloadFilename = '';
75+
@property() download = '';
7676

7777
/**
7878
* Where to display the linked `href` URL for a link button. Common options
@@ -191,7 +191,7 @@ export abstract class Button extends buttonBaseClass implements FormSubmitter {
191191
aria-haspopup="${ariaHasPopup || nothing}"
192192
aria-expanded="${ariaExpanded || nothing}"
193193
href=${this.href}
194-
download=${this.downloadFilename || nothing}
194+
download=${this.download || nothing}
195195
target=${this.target || nothing}
196196
>${this.renderContent()}
197197
</a>`;

0 commit comments

Comments
 (0)