Skip to content

Commit

Permalink
[Button] Set aria-disabled when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Jul 15, 2024
1 parent 0478e4a commit 3f502f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-jokes-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

[Button] Set `aria-disabled` when disabled
1 change: 1 addition & 0 deletions packages/svelte-ux/src/lib/components/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@
class={_class}
style={$$props.style ?? ''}
{disabled}
aria-disabled={disabled ? 'true' : 'false'}
use:multi={actions}
on:click
on:mouseover
Expand Down

0 comments on commit 3f502f1

Please sign in to comment.