The breadcrumb component is a secondary navigational pattern that allows users to move between and obtain context of various levels of hierarchy.
Breadcrumbs are effective when content is organized in a hierarchy of more than two levels, providing context for the user's location.
Dos
- Use relevant portions of page titles as their link text.
- Use clear, concise and consistent organization of pages for pathing or showing the location of the content being shown in the breadcrumb.
Don'ts
- Don't use breadcrumbs as the primary form of navigation.
- Don't use breadcrumb-items outside of the breadcrumb component.
- Ensures component uses the correct semantic
navelement with anaria-label="breadcrumb". - Utilized
olto programmatically group each breadcrumb item in the list. - Each listitem has
role="listitem"to ensure that the list association is properly conveyed. - Provides built-in focus styles that meet WCAG contrast and visibility requirements.
- Truncated text can be exposed via hover or keyboard focus.
- Breadcrumb placement is consistent across the site and is placed above the main content area.
- Ensure the breadcrumb is not used as a primary navigation element.
- Verify the
pharos-breadcrumb-itemhas a validhrefattribute.
Helps users understand where in the site they currently are visiting
A trail of links pertaining to parental content separated by forward slashes
Reads links in breadcrumb in order
- Links in breadcrumb are focused in order with tab
Breadcrumb pattern from WAI-ARIA Authoring Practices 4.1.2: Name, Role, Value (Level A)