The breadcrumb navigation pattern includes aria-label="Current page" on the last, non-link <li>. aria-label will override any content of the <li> as the accessible name.
Some assistive technology may not recognize aria-label on a <li> since it is not interactive and does not have a landmark role. For example, VoiceOver on iOS and NVDA do not recognize aria-label on the <li> so do not announce that this is the current page.
Expected behavior
Replace aria-label="Current page" with aria-current="page" to correctly convey that this <li> is the current page within the series of list items. About aria-current.
Relevant context (required)
Screenshots of 1) current code with accessibility tree and properties, and 2) expected code with accessibility tree and properties.
Steps to reproduce
Turn on a screen reader.
Listen as you navigate the breadcrumbs. Depending on screen reader/browser combination, you may or may not hear "current page" and/or the text content.
Change the attribute to aria-current="page".
Listen as you navigate the breadcrumbs. It should correctly identify the last item as the current page and announce the text content.
Describe the bug
The breadcrumb navigation pattern includes
aria-label="Current page"
on the last, non-link<li>
.aria-label
will override any content of the<li>
as the accessible name.Some assistive technology may not recognize
aria-label
on a<li>
since it is not interactive and does not have a landmark role. For example, VoiceOver on iOS and NVDA do not recognizearia-label
on the<li>
so do not announce that this is the current page.Expected behavior
Replace
aria-label="Current page"
witharia-current="page"
to correctly convey that this<li>
is the current page within the series of list items. About aria-current.Relevant context (required)
Screenshots of 1) current code with accessibility tree and properties, and 2) expected code with accessibility tree and properties.
![Screenshot 2024-06-06 at 3 22 17 PM](https://github.com/indiana-university/rivet-source/assets/47121512/4d16a92f-dd1e-45d5-9a4d-f563b3988cfc)
Steps to reproduce
aria-current="page"
.