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

[code-infra] Arbitrate between role="presentation" and role="none" #205

Open
oliviertassinari opened this issue Sep 20, 2024 · 0 comments
Open
Labels
accessibility a11y scope: code-infra Specific to the core-infra product status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@oliviertassinari
Copy link
Member

oliviertassinari commented Sep 20, 2024

Steps to reproduce

See https://www.digitala11y.com/none-role/

The role “none” was added to act as an alias for role=”presentation”, and both are the same and perform the same action. This was meant to provide clarity for those who were confused by the word “presentation.”

Current behavior

We use both

<div role="presentation">

and

<div role="none">

Expected behavior

We only use one. We have an eslint rule to avoid regressions.

I'm leaning on role="none" because:

Context

https://html5accessibility.com/stuff/2021/04/12/short-note-on-role-none-or-presentation/

@oliviertassinari oliviertassinari added status: waiting for maintainer These issues haven't been looked at yet by a maintainer scope: code-infra Specific to the core-infra product accessibility a11y labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y scope: code-infra Specific to the core-infra product status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant