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

What do we need to complete the aria coverage of web components? #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Westbrook
Copy link
Owner

No description provided.

<!-- https://leobalter.github.io/cross-root-aria-delegation/ doesn't currently include 'role', but should? -->
<!-- https://leobalter.github.io/cross-root-aria-delegation/ doesn't currently include 'aria-controls', but should? -->
<!-- https://leobalter.github.io/cross-root-aria-delegation/ doesn't currently include 'aria-activedescendant', but should? -->
<input type="text" autoAriaLabelledby autoRole autoAriaExpanded autoActivedescendant>
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<input type="text" autoAriaLabelledby autoRole autoAriaExpanded autoActivedescendant>
<input type="text" autoAriaLabelledby autoRole autoAriaExpanded autoAriaActivedescendant autoAriaControls>

for="input"
id="label"
>
<!-- I've not seen talk of offering "for" functionality on other elements, so we likely need to leverage labelledby instead -->
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for would come from Customized Built-ins, which won't ship.

Can it also come from ElementMixins as it would be particularly nice for the relationship to bind with the click + focus forwarding, etc of a label, as well.

Comment on lines +21 to +24
<!-- https://leobalter.github.io/cross-root-aria-delegation/ doesn't currently include 'aria-labelledby', but should? -->
<!-- https://leobalter.github.io/cross-root-aria-delegation/ doesn't currently include 'role', but should? -->
<!-- https://leobalter.github.io/cross-root-aria-delegation/ doesn't currently include 'aria-controls', but should? -->
<!-- https://leobalter.github.io/cross-root-aria-delegation/ doesn't currently include 'aria-activedescendant', but should? -->
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are based on AriaMixin which doesn't include any ID ref attributes, is there a mixin for that? Can we cover these? Are there centralized somewhere for easy inclusion here?

#shadow-root
<ul role="listbox">
<!-- OP skipped over the inability to use this DOM structure, but no need to nitpick -->
<!-- Placing the role here implies that we can reflect the element out of the shadow DOM in some way,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This role might ONLY manage down in a way that it wouldn't need to be reflected. Review with browsers.

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

Successfully merging this pull request may close these issues.

1 participant