Skip to content

Bypass for no-redundant-roles for list with list-style set to none? #690

Closed
@mikeriley131

Description

@mikeriley131

According to a couple of articles posted over the last few years, for accessibility purposes it is best to add role="list" to ul and ol elements that have list-style: none.

https://unfetteredthoughts.net/2017/09/26/voiceover-and-list-style-type-none/
https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html

I'm not sure if this would be possible because the rule wouldn't know about styles that were not inline with the element, but would it be possible to add some sort of bypass to the rule in such cases?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions