Skip to main content

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.

An example of a bullet list is given below. You can see how the list items work with these particular items.

  • Item 1 is really long and should be wrapped. You can see how the wrapping works with this particular item.
  • Item 2
  • Item 3
  • Item 4
  • Item 5
  • Item 6

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.

An example of a bullet list is given below. You can see how the list items work with these particular items.

  1. Item 1 is really long and should be wrapped. You can see how the wrapping works with this particular item.

  2. Item 2

  3. Item 3

  4. Item 4

  5. Item 5

  6. Item 6

Custom Marked Lists

A custom list marker adds an svg inline in the list. Useful for adding a custom icon to the list.

List

  • Tick Item 1 is really long and should be wrapped. You can see how the it works with this particular item.
  • Cross Item 2
  • Tick Item 3

Accessibility Testing Status

ComponentNVDAWindows NarratorWAVEAxeIBM Equal Access
Unordered ListYesYesYesYesYes
Ordered ListYesYesYesYesYes
Custom Marked ListYesYesYesYesYes

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.