-
Notifications
You must be signed in to change notification settings - Fork 138
Description
Per mention in the WG call today, and spurred by the discussions started with #990, I've created the following break down for review of the attributes I believe should remain global, and those that should become either prohibited on roles where they don't make sense, or should be removed from being global attributes all together.
The following has been worded under the assumption the attributes would be removed from being global:
Attributes to remain global
aria-atomicaria-busy(state)aria-current(state)aria-dropeffect- "deprecated"aria-flowtoaria-grabbed(state) - "deprecated"aria-hidden(state)aria-livearia-ownsaria-relevantaria-roledescription
Attributes to remain global, but prohibited
Per other work already happening for role=generic and accName, aria-label and aria-labelledby have consensus of staying global, but should be noted as prohibited due to wanting to advice against naming certain roles.
aria-labelaria-labelledby
I'd also submit that if a role shouldn't be named, it also likely shouldn't have a description associated with it...
aria-describedbyaria-details
Undecided
aria-keyshortcuts
I'm not exactly sure what to do with this one. Is there actual value in allowing keyboard shortcuts for non-interactive elements? I can't think of a reason, but maybe someone else?
Attributes to reallocate to specific roles
Pending further discussion, especially regarding the roles that are listed with a "(?)", the following attributes should not be global, or should be noted as prohibited on all applicable roles where they would not be expected.
aria-disabled should be allowed on:
- Widget Container Roles
- Widget roles excluding:
- link
- meter
- progressbar
scrollbarseparator- tabpanel
Discussion point
aria-disabled could be allowed on the following Document Structure roles as well:
- application
- group
- toolbar
Doing so would allow for parity with HTML's allowance of <fieldset disabled>. Though allowing on these could also be more trouble than its worth. Really interested to hear what others think.
aria-errormessage and aria-invalid should be allowed on:
checkboxcomboboxlistboxtreegridcellradiogroupsearchboxsliderswitchtextbox
aria-controls should be allowed on:
buttoncheckboxlinkmenuitem(?)menuitemcheckbox(?)menuitemradio(?)option(?)radioscrollbarsearchboxsliderspinbuttonswitchtabtextbox(?)treeitem(?)
Note, #995 may mean aria-controls should remain global until a larger discussion on if any redefinition of the attribute should take place so that AT will be more inclined implement it / not ignore it.
aria-haspopup should be allowed on:
buttoncomboboxgridcell(?)menuitemsearchboxslider(?) - datalist is allowed on HTML's input but treated differentlytextboxtreeitem(?)
(edit) Final note:
Whatever is decided here, I'd imagine a good path forward would be to not necessarily act on this as a single issue, but to create sub-issues for any reallocation. Then make PRs on those sub-tasks individually, instead of tackling this all at once.