-
Notifications
You must be signed in to change notification settings - Fork 375
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
Add delegatesLabel and a content attribute to specify the label element within a shadow tree #916
Comments
APA says thanks for letting us know about this work. Do you need anything specifically from APA, or is this just FYI? |
It's basically FYI but it would be good if you can comment if this will satisfy the use cases APA knows about. |
Ok, @AutoSponge will take a look at this. |
This appears to satisfy all of the use cases I can think of. However, I anticipate matters of progressive enhancement/graceful degradation will restrict usage. Implementations in user agents without support for APA should track progress and prepare a note to update heuristics such as "no interactive content descendant". See Allowed ARIA roles, states and properties. Validators, such as validator.w3.org, may need extensive updates to address new element compositions. If user agent and AT implementations object to specific combinations of nested rules (e.g., button > button), implementors could create many accessibility issues unknowingly. |
Is the proposed |
I was under the impression this was specifically for the HTML |
I think full support here would require more than simply support for the HTML I think additional support here is warranted for delegation of additional ARIA attributes. We have button web component which delegates focus to a native button so we can avoid reinventing the wheel while still getting all the benefits of custom elements, encapsulation, etc. While the label solves a big problem, it certainly doesn't solve every problem. Is there an issue tracking the delegation of additional attributes? |
See #917 (though there has been other discussion about that too that I cannot find right now, perhaps it's in whatwg/html somewhere). |
I'm assigning this work to myself as discussed today at the AOM meeting. I don't have write permissions to do this formally in this github org, but this comment might be good enough for now. My general understanding is that we don't have full consensus for this (yet) and the next step will be shaping the rough edges for a final workable solution, then specs. I'll start this following the work on #917. Thanks! |
WCCG had their spring F2F in which this was discussed. You can read the full notes of the discussion (#978 (comment)) in which this was discussed, heading entitled "ARIA Mixin & Cross Root ARIA" - where this issue was specifically discussed. In the meeting, present members of WCCG reached a consensus to discuss further in breakout sessions. I'd like to call out that #1005 is the tracking issue for that breakout, in which this will likely be discussed. |
With the advent of https://github.com/WICG/webcomponents/blob/gh-pages/proposals/reference-target-explainer.md it does sound like we need something like #1068 to support no ID referenced values in this way. |
Seems covered by the Reference Target API. |
During AOM F2F today, a common scenario of wanting to label a custom element but wanting that label to be delegated to a specific element within its shadow tree came up. In this case, when the label were to be activated, we want to activate the specific element within its shadow root instead, and the assistive technologies should be using the label for the same element instead of the entire shadow host or its shadow tree in its entirety.
We then came up with the idea of
delegatesLabel
which likedelegatesFocus
will delegate the label specified on a shadow host to a specific element within the shadow root. In order to define which element will get labeled on behalf of the shadow host, a content attribute (e.g.autofocus
orlabelfor
) should also be added.The text was updated successfully, but these errors were encountered: