-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a11y api changes #748
Comments
@jessegreenberg @mbarlow12 please add to suggest edits. |
These two in combination seem tricky. This means the result of specifying a parent container tag name of "div" on the node with no label or description elements will be a "no-op", which is a confusing case. Maybe default should be |
agreed. I'll update the checklist above. |
We want to be able to disseminate the a11y api to other devs in the coming weeks, so marking as High priority. |
This issue is massive, so I think it may be best to work on it in pieces (perhaps breaking some pieces into separate issues). With that, to try to be as thorough as possible, I think that each piece would be good to review separately, that way we don't lose track of some nuance or forget about some pieces. |
#753 holds dev versions as a benchmark before diving into this issue. |
All that is left as part of this issue is separating out prependLabels to individual While working in the A11y trait, I found lots of smallish things that should be fixed. For the most part, I just jotted them down, but I added a TODO also. I will create separate issues for the things I think need them. |
…t, getPrimarySiblingElementByNode returns Element not id, #748
All features have been implemented with the exception of some usages of |
These changes where discussed in #686, and decided on in a11y dev meeting today.
Remove
*AsHTML
methods and have a single method determine if we should useinnerHTML
settings ortextContent
on DOM elements. Performance considerations in the comment [Discussion] Rethink cases for setAccessibleContent #686 (comment)Reimplement
accessibleLabel: {{string}}
so that it only ever set's a sibling DOM element, tag declared inlabelTagName
.labelTagName
should default tolabel
if not specified whenaccessibleLabel
is given.innerContent
: sets theinnerHTML
ontagName
DOM element of the Node itself.Reimplement
useAriaLabel: {{boolean}}
tosetAriaLabel: {{string}}
which will set the aria label attribute on the Node's DOM ElementprependLabels: {{default false}} will be split into two options:
appendLabel
: {{default false}}appendDescription
: {{ default false}}Notice that the default value has switched, and the default now places the label/description before the Node's DOM Element.
parentContainerTagName
exists if ever there is a label or description DOM Element, defaults todiv
, (implementationally defaults tonull
until added to the dom)If
parentContainerTagName
is given without label/description content, then just surround the single Node'stagName
Label and description DOM Elements cannot be children to the Node's DOM element, only siblings.
Rename
parentContainerTagName
->containerTagName
The text was updated successfully, but these errors were encountered: