Lists
Lists are used to present a series of items in a specific order. They can be used to display a list of items, a list of tasks, or a list of options. Lists can be used inside content blocks like cards, paragraphs, or even inside other lists. They can also be nested lists inside each list item.
Unordered Lists
Unordered lists are used to present a list of items in no particular order. They can be used to display a list of items, a list of tasks, or a list of options.
Ordered Lists
Ordered lists are great for presenting a series of items in a particular order. It’s a great way to organize information which needs to be presented in a step-by-step manner.
Custom Marked Lists
A custom list marker adds an svg inline in the list. Useful for adding a custom icon to the list.
Accessibility Testing Status
Component | NVDA | Windows Narrator | WAVE | Axe | IBM Equal Access |
---|---|---|---|---|---|
Unordered List | Yes | Yes | Yes | Yes | Yes |
Ordered List | Yes | Yes | Yes | Yes | Yes |
Custom Marked List | Yes | Yes | Yes | Yes | Yes |
Since we use the <ul>
element for the unordered list and <ol>
element for the ordered list, the component is accessible out of the box. However, the custom list marker uses an accessible <svg>
element by giving it the role of img
and aria-labelled by title
.