Checks that ul and ol elements contain only li elementsDocumentation Index
Fetch the complete documentation index at: https://docs.squirrelscan.com/llms.txt
Use this file to discover all available pages before exploring further.
| Rule ID | a11y/list-structure |
| Category | Accessibility |
| Scope | Per-page |
| Severity | error |
| Weight | 7/10 |
Solution
Lists (<ul> and <ol>) should only contain <li> elements as direct children. For custom components, you can also use elements with role=‘listitem’. Move other content inside <li> elements.
Enable / Disable
Disable this rule
squirrel.toml
Disable all Accessibility rules
squirrel.toml
Enable only this rule
squirrel.toml