Re: [WICG/webcomponents] Add delegatesLabel and a content attribute to specify the label element within a shadow tree (#916)

> I was under the impression this was specifically for the HTML `label` element so it could target a specific element within custom element's shadow tree.

I think full support here would require more than simply support for the HTML `label` element as the `label` element itself does not work with ARIA radios or ARIA checkboxes (as an example). 

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?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/916#issuecomment-884385123

Received on Wednesday, 21 July 2021 18:05:56 UTC