-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
False Positive for a11y-no-redundant-roles on List Items #8854
Comments
I'm inclined to mark this as "works as designed" since I imagine this being an edge case and only affecting Safari, and because it's possible to also solve this using CSS (zero width space) - adding |
We also show this warning for <ul role="list">
</ul> I'd be in favor of adding an exception to this warning for |
I would love to see an exception for |
Describe the bug
Svelte will always report a warning on
<li role="listitem">
. However, this can be a false positive, as under certain conditions the role may not be redundant. According to MDN:More info here
Reproduction
Logs
No response
System Info
System: OS: macOS 13.4 CPU: (10) arm64 Apple M1 Pro Memory: 630.22 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.3.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 9.6.7 - /opt/homebrew/bin/npm Browsers: Safari: 16.5 npmPackages: svelte: ^4.0.0 => 4.0.0
Severity
annoyance
The text was updated successfully, but these errors were encountered: