MultiSelect (other dropdowns?) always have `aria-selected=false` even when selected
See original GitHub issueDetailed description
What version of the Carbon Design System are you using?
10.15
What did you expect to happen?
When selecting an option in MultiSelect
, it has attribute aria-selected="true"
.
What happened instead?
The attribute aria-selected
is always false
, even when option is selected.
Steps to reproduce the issue
- Load storybook for
MultiSelect
: https://react.carbondesignsystem.com/?path=/story/multiselect--default - Open menu and inspect an option. Notice that
aria-selected
attribute isfalse
. - Select an option, so that it has a checkmark.
- Inspect that option. Notice that
aria-selected
is stillfalse
instead oftrue
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Listbox Example | WAI-ARIA Authoring Practices 1.1
This example uses a single-select listbox, but works just as well with a multi-select listbox. Other Accessibility Features. Keyboard shortcuts for action ...
Read more >aria-multiselectable - Accessibility - MDN Web Docs
The aria-multiselectable attribute indicates that the user may select more than one item from the current selectable descendants.
Read more >"onDropDownClose" event is getting triggered all time even if I ...
Hence,I am using "onDropDownClose" event to get all the selected values and load the other data based on the selected multiple values. <ng- ......
Read more >Combobox - Lightning Design System
On mobile devices, such as phones and other devices that have touch as the ... Every option has aria-selected="false" by default ... Multiple...
Read more >Should selected options be removed from single- and multi ...
Also, should this behavior be different for single-select and multi-select dropdown lists? Show selected options: Remove selected options: input ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The spec (https://www.w3.org/TR/wai-aria-practices/examples/checkbox/checkbox-1/checkbox-1.html) specifies an
aria-checked
attribute. Also, shouldn’t the list item haverole="checkbox"
?Hey @jhpedemonte! 👋 Sorry for the delay, I believe the current item is set with
aria-activedescendant
if I remember correctly.