NAV-002a When a menu shows the current page, say so in the code on that item
- Level
- Rule
- Verdict
- Requirement
- Area
- Navigation
- Status
- proposed, version 1.0.1
Rule
When a navigation menu shows which item is the page the person is on, the code or the text says so too, so a screen reader announces that item as the current page. The usual way is aria-current="page" on its link.
Examples
Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.
Do: The highlighted item says it is current
aria-current="page". Choose another item: the highlight and the code move together, and only one item has the mark. The items are real links, and the click is held back so the page does not move.Don't: Only a highlight, nothing in the code
aria-current. A person who cannot see the highlight hears "Invoices, link" and learns nothing about where they are.Do: A page inside a section marks the section
"true". Press Back to invoices and it changes to "page". Open INV-0042 brings it back.Don't: The mark sits on the list item
li around the link, not on the link. When Tab or a list of links reaches the link, it is read as "Invoices, link", without "current page". Choose another item to see the mark move on the wrong element.Why
A highlighted menu item tells a sighted person where they are. A screen reader user who hears only "Invoices, link" gets none of that, and has to work out their place from the page itself. WCAG 2.2, 1.3.1 Info and Relationships requires that what the presentation shows can also be found in code or in text. The criterion does not name any attribute. The Working Group lists aria-current as a sufficient way to expose the current item in a set of links (ARIA26); its techniques are how the Working Group reads the criterion, not the criterion's own words. Sufficient is not the only way. Text that says so, read out with the link, also meets the criterion, so the rule names aria-current as the usual means and accepts others that a screen reader announces just as clearly. The same technique is also listed under 2.4.8 Location, which is Level AAA and outside this rule. 4.1.2 Name, Role, Value points the same way but is written about states a person sets on a control, so this rule does not rest on it. Whether the menu should show a current item at all is NAV-002b.
Do
- In the invoicing app Tallowbrook, the sidebar lists Dashboard, Invoices, Clients and Reports. On the invoice list, Invoices is highlighted, and its link has
aria-current="page". A screen reader reads it as "Invoices, current page, link". - shadcn's
SidebarMenuButtontakes anisActiveprop. In the current shadcn source (read on 25 November 2026) it sets onlydata-active, which the classes use for the highlight, and adds noaria-current.SidebarMenuSubButtondoes the same. Set it yourself:<SidebarMenuButton asChild isActive={active}><Link href="/invoices" aria-current={active ? "page" : undefined}>Invoices</Link></SidebarMenuButton>. - Next.js
Linkdoes not setaria-currentby itself, so pass it as above. React Router'sNavLinksetsaria-current="page"on its own when the route matches; keep it, and do not swap it for a plainLinkwith an active class. RadixNavigationMenu.Linksets it when you passactive, so passactiverather than only a class. - Our own choice: put the mark on the element that is the link, the
a, and on one item per menu. - When the top bar and the sidebar each show a current item, each
navmarks its own. - Our own reading: on a single invoice,
/invoices/INV-0042, the sidebar still highlights Invoices as the section the person is in, but that page is not in the menu. Mark Invoices witharia-current="true", the current item in a set, rather than"page". - On a narrow screen the shadcn
Sidebarmoves into a sheet. Because the mark is on the link, it moves with it, as the links themselves must under LAY-001. A menu built from a second, hand-written list needs the same mark. - shadcn's
BreadcrumbPagealready renders the last crumb witharia-current="page". If you show the current page in a breadcrumb as a real link instead, give that link the mark. - Another way that meets the criterion: visually hidden text such as "(current page)" inside the link. Use one way, not both, or the screen reader says it twice.
- Keep the current link focusable and in the tab order, as KBD-001 expects of links.
Don't
- Set
isActive={pathname === item.url}onSidebarMenuButtonand stop there, so the highlight has no counterpart in code. - Put
aria-currenton thelior on a wrappingdivinstead of the link. - Use
aria-selectedon a menu link. It belongs to tabs, options and grid cells. It is not a supported state on a link, and most screen readers do not announce it there. - Give every item
aria-current="true", or two items in the same menuaria-current="page". - Mark the current item only with a class such as
font-semiboldorbg-accent.
Exceptions
- A menu that shows no current item. There is nothing to expose, so this rule asks nothing. Whether it should show one is NAV-002b.
- Tabs. shadcn
Tabsswitch a panel in place, and Radix already exposes the selected tab. This rule is for menus of links that go to pages. - Steps and result pages. The same attribute takes the values
stepfor the current step in a process andpagefor the current page of results in pagination. Those are outside this navigation rule. - Language pickers. The current entry in a language picker is said in code the same way, for example with
aria-current. The language of each entry is STR-006a. - Neighbouring rules. The menu's
navand its name are STR-004. What the current item looks like is NAV-002b.
Verdict
Requirement. Only the judges decide; the expert witnesses are shown but do not vote. How verdicts work
| Source | Role | Stance | Page |
|---|---|---|---|
| WCAG 2.2 | Law | Requires | 1.3.1 Info and Relationships |
| WCAG 2.2 | Law | Supports | 4.1.2 Name, Role, Value |
| Material Design | Judge | No position | |
| Apple Human Interface Guidelines | Judge | No position | |
| Carbon Design System | Judge | Supports | UI shell left panel: accessibility |
| GOV.UK Design System | Expert witness | No position | |
| Nielsen Norman Group | Expert witness | No position |
Each stance links to the page it rests on, read on the date in the source register. This page never repeats what a source says; read the source itself.
History
- Version 1.0.1, : Points to STR-006a for the entries of a language picker.
- Version 1.0.0, : First version.
Last checked against the other rules for conflicts on .
More in Navigation: 3 rules and 1 guideline · All rules
Justified is an independent project. It is not affiliated with, sponsored or endorsed by the organisations whose guidance it cites. Read the full statement.
Apple is a trademark of Apple Inc., registered in the U.S. and other countries and regions.