-
Notifications
You must be signed in to change notification settings - Fork 3
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
Delegation proposal syntax #22
Comments
These are all great points and worth bikeshedding on (seriously!). Some of my thoughts:
Legibility is great, but let's avoid reinventing the casing for ARIA attributes. Things like As for whether we're "allowed" to put hyphens in the attribute names, that seems like maybe a question for HTML/TAG folks?
For
This would be very useful from an author perspective. I think most people would prefer it, rather than having lots of repetition in their HTML.
I'd say: the same as not including the key at all.
This seems inevitable to me, because of |
There are a bunch of issues related to the syntax for the delegation proposal.
Let's link them all from here for future reference and use this issue to discuss the final syntax:
There's also a section in the explainer about this topic.
The current proposal in the explainer uses:
delegatesAriaAttributes: "aria-label aria-describedby"
shadowrootdelegatesariaattributes="aria-label aria-describedby"
delegatedariaattributes="aria-label aria-describedby"
See a full example:
There are a bunch of problems:
delegatesFocus
andshadowrootdelegatesfocus
-
to improve legibility:delegated-attributes
? Maybe this ship has already sailed and we cannot do anything like that for consistency with other properties.delegatesAriaAttributes: { aria-label: true, aria-describedby: true }
false
mean if we go with a boolean approach?delegates: true
that applies to everything? Maybe this is out of scope of this proposal and is more generic than this.The text was updated successfully, but these errors were encountered: