Skip to content

Addition: popovertarget and command guidance #514

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

Open
wants to merge 7 commits into
base: gh-pages
Choose a base branch
from

Conversation

scottaohara
Copy link
Member

@scottaohara scottaohara commented Apr 15, 2024

Closes #513

the aria-expanded state is implicit when using the popovertarget attribute - and authors are not to use the ARIA attribute with this native HTML attribute.

TODO test case


Preview | Diff

Closes #513

the `aria-expanded` state is implicit when using the `popovertarget` attribute - and authors are not to use the ARIA attribute with this native HTML attribute.
@scottaohara scottaohara added needs implementation commitment Cannot merge into spec until implementations in conformance checkers has been confirmed. needs changelog entry once 2 implementations land, we can merge and note it in our changelog. labels Apr 15, 2024
@lukewarlow
Copy link
Member

This should also be expanded to commandfor once they're in the spec. Doesn't need to be in this PR just leaving a comment so it's noted somewhere.

the various lines of "authors may use [ attribute name ]" were unnecessary for the scope of this spec.

listing out what elements the HTML attributes are used with was also unnecessary / and would require upkeep that adds extra maintenance to this spec.

adds rules for command attribute, and adds aria-details allowances for popovertarget.
@lukewarlow
Copy link
Member

The table seems to have messed up a bit there's references to contenteditable and then stuff like aria-expanded?

@scottaohara scottaohara changed the title Addition: popovertarget guidance Addition: popovertarget and command guidance Apr 6, 2025
@scottaohara
Copy link
Member Author

The table seems to have messed up a bit there's references to contenteditable and then stuff like aria-expanded?

Yeah, I’m mid edit on some of this stuff. I’ll get it fixed

update the first column which had copied the `contenteditable` content to the correct `command` related content.

update the allowances for aria-expanded to only be applicable to the toggle/show/hide popover states - since that's where the implicit conflict would come into play.

other wording fixes for the attribute table cleanup that i was doing in this PR as well - for better/worse since that arguably should have been another PR... but the work is done so here it is...
@scottaohara scottaohara requested a review from lukewarlow April 10, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs changelog entry once 2 implementations land, we can merge and note it in our changelog. needs implementation commitment Cannot merge into spec until implementations in conformance checkers has been confirmed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

relationship between native semantics of HTML popover feature and ARIA might need to be normalized.
2 participants