ibm-js / delite

HTML Custom Element / Widget infrastructure
http://ibm-js.github.io/delite/
Other
68 stars 28 forks source link

HasDropDown: don't set aria-expanded #445

Closed wkeese closed 8 years ago

wkeese commented 8 years ago

Apparently it's inappropriate to set aria-expanded for nodes with popups. http://heydonworks.com/practical_aria_examples/#submenus doesn't do it, and according to IBM's DAP tool:

The WAI-ARIA property aria-expanded is not supported global property on element BUTTON that does not have a WAI-ARIA role.

The counterargument is that it's nice for the user to know if the dropdown (aka popup) is shown or not. But as soon as the popup is shown, focus will shift to the popup and thus aria attributes on the HasDropDown node are meaningless.