Skip to content

Commit

Permalink
[MultiSelect | Option] Add aria role and attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Jul 30, 2024
1 parent a409bec commit fc18db3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-drinks-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

[MultiSelectOption] Add aria role and attributes
5 changes: 5 additions & 0 deletions .changeset/poor-turtles-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

[MultiSelect] Add aria role and attributes
2 changes: 2 additions & 0 deletions packages/svelte-ux/src/lib/components/MultiSelect.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
classes.root,
$$restProps.class
)}
role="listbox"
aria-multiselectable="true"
>
<slot name="beforeOptions" selection={$selection} />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
classes.root,
$$props.class
)}
role="option"
aria-selected={checked}
>
<Checkbox
bind:checked
Expand Down

0 comments on commit fc18db3

Please sign in to comment.