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

Interest Invokers: avoid a11y traps #1093

Open
scottaohara opened this issue Sep 18, 2024 · 1 comment
Open

Interest Invokers: avoid a11y traps #1093

scottaohara opened this issue Sep 18, 2024 · 1 comment
Assignees
Labels
invokers needs edits This is ready for edits to be made

Comments

@scottaohara
Copy link
Collaborator

In an offline discussion it was mentioned that interest invokers could potentially be used to invoke modal dialogs on hover or focus. While that is not mentioned in the explainer as a use case (my take away is that it's not a use case at all since the interestee elements are all listed as popovers), it should probably be mentioned as something people should not do (e.g., by 'faking' a modal dialog by invoking a dialog popover and manually making everything inert).

In general, for the a11y section it should be noted that 'interest' does not necessarily indicate someone wants to immediately interact with whatever content is exposed / if they want to even interact with it at all. So, it should be called out explicitly that it is not expected for a focus change to occur anytime an item of interest is displayed. Doing so would commonly fail WCAG 3.2.1 - On Focus.

@lukewarlow
Copy link
Collaborator

Yeah this is a good point we should definitely call this out. The available actions explicitly aren't the same as command. Aka modals are NOT a valid use case for this.

@gregwhitworth gregwhitworth added invokers needs edits This is ready for edits to be made labels Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invokers needs edits This is ready for edits to be made
Projects
None yet
Development

No branches or pull requests

4 participants