ARIA Breadcrumb Design Pattern Example
-- This page requires updates per - issue 187. - Please provide any additional feedback in this issue. -
-This example shows the breadcrumb design pattern.
- -- It is recommended authors use an ordered list to structure the list of links. - Visual separators should be added through CSS. -
- -
-
+
+
-
+
+
+
-
+
+
+
+
+
+
+
Breadcrumb Example
+The following example demonstrates the breadcrumb design pattern.
+Example
+ +
-
+
+ Accessibility Feature
- -If markedup with a labelled nav
element, the breadcrumb will be exposed as such.
Keyboard Support
+Accessibility Features
+-
+
- The set of links is structured using an ordered list . +
- The visual separators between links are added through CSS so they do not add unnecessary screen reader verbosity. +
- A labelled
nav
element identifies the structure and makes it easy to identify and locate.
+
Keyboard Support
No keyboard interaction needed.
+ARIA Roles, Properties and States
- -Role | -Property/State | -Usage | +Role | +Attribute | +Element | +Usage |
---|---|---|---|---|---|---|
- | aria-current with a value of page |
+
+ aria-label=
+ |
+
+ nav
+ |
- Mark the current page within the widget.
+ Provides a label that describes the type of navigation provided in the nav element.
+ |
+ ||
+ |
+ aria-current=
+ |
+
+ a
+ |
+ + Applied to the last link in the set to indicate that it represents the current page. |
Source Code
- +Javascript and CSS Source Code
-
-
- CSS: breadcrumb.css +
- + CSS: + breadcrumb.css +