It establishes a landmark on the page which assists the user in understanding where they currently are and which pages exist in the current page’s hierarchical order.
It comprises a set of links structured using an ordered list. A nav
element using aria-label="Breadcrumbs"
identifies the structure as a breadcrumb trail and makes it a navigation landmark so that it is easy to locate. It can be navigated via keyboard using the Tab
key.
To prevent screen reader announcement of the visual separators between links, they are added via CSS. The separators are part of the visual presentation that signifies the breadcrumb trail, which is already semantically represented by the nav
element.
This component strives to follow WCAG 2.2 (level AA) guidelines, and care must be taken to ensure this effort is maintained when the component is implemented across other projects. This section offers advice to that effect:
aria-current="page"
attribute.