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

A11y: Non-interactive element <ul> cannot have interactive role 'menu' #8416

Closed
tborychowski opened this issue Mar 24, 2023 · 1 comment
Closed

Comments

@tborychowski
Copy link

tborychowski commented Mar 24, 2023

Describe the bug

This warning is showing on a ul tag element. I believe it is incorrect, as I have not found anything in the https://w3c.github.io/aria/#menu that would suggest that an element with role menu must be interactive.
Even MDN has ul as an example tag for role="menu":

Screenshot

Reproduction

Create a svelte file with the following:

<ul role="menu"></ul>

svelte compiler will show a warning:

Non-interactive element <ul> cannot have interactive role 'menu'

Logs

No response

System Info

irrelevant

Severity

annoyance

@tborychowski tborychowski changed the title Non-interactive element <ul> cannot have interactive role 'menu' A11y: Non-interactive element <ul> cannot have interactive role 'menu' Mar 24, 2023
@dummdidumm
Copy link
Member

Closed via #8402, release pending

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Mar 24, 2023
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

2 participants