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

Toast: Inappropriate role #3190

Open
jussirantala opened this issue Oct 22, 2024 · 0 comments
Open

Toast: Inappropriate role #3190

jussirantala opened this issue Oct 22, 2024 · 0 comments

Comments

@jussirantala
Copy link

jussirantala commented Oct 22, 2024

Bug report

Current Behavior

Toast is a <li> element with role="status" and a children of <ol> which has default role (list).
image

Expected behavior

<ol> role is not list because <li> can't have any other role than listitem if it's a children of a element with list role. https://www.w3.org/TR/html-aria/#docconformance

This would make it pass jest-axe a11y tests.

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

No branches or pull requests

1 participant