Skip to content

Commit b5a4801

Browse files
committed
aria-label added
1 parent 47d1172 commit b5a4801

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/stories/components/Form/Button/Button.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
class?: string;
6161
/** The onclick event handler */
6262
onclick?: MouseEventHandler<HTMLButtonElement>;
63+
/** Aria label */
64+
'aria-label'?: string;
6365
/** Turn Button into link */
6466
href?: string;
6567
/** Link button: download */
@@ -101,6 +103,7 @@
101103
onclick,
102104
before,
103105
after,
106+
'aria-label': ariaLabel,
104107
href,
105108
download,
106109
hreflang,
@@ -145,6 +148,7 @@
145148
{target}
146149
type={anchorMediaType}
147150
{referrerpolicy}
151+
aria-label={ariaLabel}
148152
class:outline
149153
class:compact
150154
class:disabled
@@ -166,6 +170,7 @@
166170
class:outline
167171
class:compact
168172
class:fullWidth
173+
aria-label={ariaLabel}
169174
class={[
170175
'dodo-ui-Button',
171176
`size--${size}`,

0 commit comments

Comments
 (0)