You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.
To be accessible, <core-selector> needs to communicate its role and state to assistive technologies. It also needs to be accessible from the keyboard, but this issue is focused on semantics.
I don't see this component extending a native <select> under the hood and there are no ARIA attributes being added dynamically. Can you elaborate on the lack of accessibility in the current version of <core-selector> and if we can expect an update to it? I'm willing to work on a PR, but I don't want to overlap existing efforts.
A more accessible version built on-top of core-selector, uses roles, aria-activedescendant and child IDs (PR forthcoming):
If accessibility is meant to be "layered on" as a plugin, it is highly likely developers will forget it...making this component less useful. It really should be built into the core component. Just wondering if that's already on your radar, since I don't see any open issues for it.
The text was updated successfully, but these errors were encountered:
I'm +1 for this being baked in to the element (if feasible). There are likely to be historical constrains around just extending <select>, but we could possibly add in core-a11y-keys support and start to look at the ARIA attributes too.
I think I asked about this myself before, and the team came to the conclusion that core-selector is a base class for many things, so baking accessibility into that element might be a mistake. Instead, subclasses should work out how accessibility functions for them.
For instance, core-menu and core-tabs extend core-selector, and it may be better for those elements to handle a11y.
I'm personally unsure what is the best approach since core-selector can be used standalone inside a custom element.
To be accessible,
<core-selector>
needs to communicate its role and state to assistive technologies. It also needs to be accessible from the keyboard, but this issue is focused on semantics.I don't see this component extending a native
<select>
under the hood and there are no ARIA attributes being added dynamically. Can you elaborate on the lack of accessibility in the current version of<core-selector>
and if we can expect an update to it? I'm willing to work on a PR, but I don't want to overlap existing efforts.A more accessible version built on-top of core-selector, uses roles,
aria-activedescendant
and child IDs (PR forthcoming):If accessibility is meant to be "layered on" as a plugin, it is highly likely developers will forget it...making this component less useful. It really should be built into the core component. Just wondering if that's already on your radar, since I don't see any open issues for it.
The text was updated successfully, but these errors were encountered: