Keyboard interaction
Lists are not keyboard operable, unless the list items themselves are operable. In such a situation, the list items will retain the component’s default keyboard interaction. For example, in a list of links, each link will be in the tab order and can be activated by Enter.
Development considerations
Keep this in mind if you’re modifying Carbon or creating a custom component:
- Carbon uses native HTML unordered (
ul) and ordered (ol) lists and list items (li), then styles them with CSS. - Carbon uses
::beforeand::markerCSS pseudo-elements for the numbering and bulleting of lists, which are properly read by assistive technologies such as screen readers.
Feedback
Help us improve by providing feedback, asking questions, requesting features, or leaving any other comments on GitHub.