---
url: /components/navigation-bar/accessibility.md
description: >-
  Navigation bars let people switch between UI views on smaller devices. They’re
  a common navigation component on handheld screens.
---

# Navigation bar

Navigation bars let people switch between UI views on smaller devices. They’re a common navigation component on handheld screens.

[Overview](overview.md) · [Specs](specs.md) · [Guidelines](guidelines.md) · **Accessibility**

## Use cases

People should be able to do the following using the assistive technology:

* Move between navigation destinations
* Select a particular navigation destination from a set
* Get appropriate feedback based on input type

## Interaction & style

**Touch**

* When a navigation item is tapped, the active indicator appears in place, providing feedback that it’s selected
* A touch ripple passes through the indicator
* The icon switches from outlined to filled
* The icon changes color

<video controls src="https://firebasestorage.googleapis.com/v0/b/design-spec/o/projects%2Fgoogle-material-3%2Fimages%2Fm7paivnz-GM3-Accessibility_Expressive_NavBar_a11y_01_V03.mp4?alt=media" aria-label="On a navigation bar, when the Home and Explore icons are tapped, an active indicator is displayed as interaction feedback."></video>

Touch: Tap

**Cursor**

* When hovered, the active indicator appears in a reduced state providing a visual cue that the destination is interactive
* When clicked (in both active and inactive states), a ripple passes through the indicator
* The icon switches from outlined to filled
* The icon changes color, becoming darker

<video controls src="https://firebasestorage.googleapis.com/v0/b/design-spec/o/projects%2Fgoogle-material-3%2Fimages%2Fm7paj7kh-GM3_Expressive_Accessibility_NavBar_a11y_02_V04.mp4?alt=media" aria-label="On a navigation bar, the hover and click interactions on the Home and Explore icons have different interaction feedback."></video>

Cursor: Hover, Click

### Text scaling and truncation

When someone sets their device to show a larger text size, the navigation bar should grow vertically to accommodate larger labels while retaining the default padding. It’s okay for scaled text to wrap in navigation items.

To remain accessible, ensure the full label is always visible on-screen at up to 2x text sizing. Beyond this size, text can truncate.

![Nav bar with text scaled to 1.5x size. Some labels are on two lines, others are on one line.](/assets/fecd481d-m2kua3ge-03.BVzNH-kJ.webp)

Text scaled to 1.5 size

![Nav bar with text scaled to 2x size. Some labels wrap to two lines.](/assets/24743133-m2kuaeol-04.DbI3onk5.webp)

Text scaled to 2x size

## Initial focus

Initial focus lands directly on the first navigation item, since that is the first interactive element of the component.

![Focus order and keyboard navigation of a nav bar.](/assets/6f0e66d9-m0fr7kb3-03.CsyzhOTI.webp)

Focus lands on first navigation item

![Activating a nav item with space on a keyboard.](/assets/8ee48962-m0fr7nd7-04.CZL4TdRe.webp)

The navigation item is selected with Space/Enter

## Visual indicators

Use a filled icon with a bold label for selected destinations. For unselected destinations use an outlined icon with a medium label.<br><br>If an icon doesn’t have a filled style, use a thicker or heavier version of the icon instead.

::: tip Do
![A nav bar with a filled icon for the selected nav item.](/assets/fe929bff-m0fr7qqu-05.Ct755-4G.webp)

Use a filled icon for the selected navigation destination to differentiate from the other destinations
:::

::: danger Don't
![A nav bar with an outlined icon for the selected nav item.](/assets/ecf45ebf-m0fr7ugl-06.DWsMgzzd.webp)

Don’t use outlined icons on selected nav items
:::

![2 nav items, one selected, one unselected.](/assets/74bc3464-m0fr7yfn-07.-aG-c0b-.webp)

When selected, the icon fills, darkens, and is backed by an active indicator shape

## Keyboard navigation

| Keys          | Actions                             |
| ------------- | ----------------------------------- |
| Tab           | Move between navigation items       |
| Space / Enter | Selects the focused navigation item |

## Labeling elements

The accessibility label for a navigation item is typically the same as the destination name.<br>

![Accessibility label and role defined for a Home icon on a navigation bar.](/assets/461cd0b7-m0fr861i-08.BYBkkv4h.webp)

A navigation bar’s accessibility label can incorporate its adjacent UI text

When the visible UI text is ambiguous, accessibility labels need to be more descriptive. For example, a navigation destination visibly labeled **Library&#xA0;**&#x77;ould benefit from additional information in its accessibility label to clarify the destination’s intent.<br><br>Note: On Android Views (MDC-Android), a more descriptive accessibility label is not available and the role is not announced.

![Accessibility labels of a navigation bar.](/assets/f9eeada0-m0fr8a8y-09.TwIXmDb4.webp)

While the visible label text reads **Library**, the accessibility label for this destination clarifies its function: **Music library**
