Skip to content
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

Delegate something that isn't provided #21

Open
mrego opened this issue Oct 25, 2022 · 5 comments
Open

Delegate something that isn't provided #21

mrego opened this issue Oct 25, 2022 · 5 comments

Comments

@mrego
Copy link
Collaborator

mrego commented Oct 25, 2022

This is a separated issue extracted from #7.

What should happen if you delegate something and it isn't provided? Could it be provided implicitly somehow?

Example:

<x-foo>
  <template shadowroot="closed" shadowrootdelegatesariaattributes="aria-label">
    <input id="input" delegatedariaattributes="aria-label" />
  </template>
</x-foo>
@nolanlawson
Copy link
Collaborator

What do you mean by "provided implicitly"? Does this overlap with ElementInternals?

@mrego
Copy link
Collaborator Author

mrego commented Nov 9, 2022

Probably @bkardell can clarify, as this is a question from him in the original issue.

@bkardell
Copy link
Contributor

bkardell commented Nov 9, 2022

Yeah, I just meant that you could have something like

<label for="x">Favorite Quote</label>
<rich-text id="x">
   (ShadowRoot)
      (Some stuff)
      (The actual area that should have a label)
</rich-text>

and if you are literally just delegating attributes down the tree that doesn't help all of the native built-in roles/relationships I guess?

@nolanlawson
Copy link
Collaborator

nolanlawson commented Apr 19, 2023

Is this the same as reflection/exporting? In your example, the for IDref is pointing down into the shadow root. (As opposed to delegation/importing, where it points out of a shadow root.)

Also related: #13 (since for is not technically ARIA).

@keithamus
Copy link

WCCG had their spring F2F in which this was discussed. You can read the full notes of the discussion (WICG/webcomponents#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 WICG/webcomponents#1005 is the tracking issue for that breakout, in which this will likely be discussed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants