Navigation button
One text destination inside Top navigation and Bottom navigation on md, with Selected marking the current page. Not placed directly on a screen.
- Design
- Finished
- Level
- Draft
- Audit
- 2 open findingsat the audit of
- Last changed
- Resources
- Figma Propose a change
Preview


Not written in Figma yet: Usage and Don't. Both belong in the component's description.
Dependencies in Figma
Level checks
Draft · next level blocked by Errors open
| Check | Level | Result |
|---|---|---|
| Audited | Ready | Passes |
| No errors open | Ready | 1 error open |
| Has a description | Ready | Passes |
| Usage and Don't written | Ready | Checked at the next audit |
| Every layer named | Ready | Passes |
| In code | Ready | Passes |
| No warnings open | Stable | Not yet |
| Code gen notes written | Stable | Checked at the next audit |
| Auto layout throughout | Stable | Checked at the next audit |
| Matches the design | Stable | Passes |
Anatomy
| # | Part | Shown | Component |
|---|---|---|---|
| 1 | Label | Always | – |
Properties
| Property | Type | Values | Default |
|---|---|---|---|
| Selected | Variant | FalseTrue | False |
| Disabled | Variant | FalseTrue | False |
| State | Variant | RestFocusHoverPress | Rest |
| Label text | Text | any text | Label |
States
| State | Set by |
|---|---|
| Focus | Interaction |
| Hover | Interaction |
| Press | Interaction |
| Selected | The Selected property |
| Disabled | The Disabled property |
Implementation
| Figma | Code | Why |
|---|---|---|
| Focus ring, a layer 4px outside the box | outline on :focus-visible, outline-offset 4px less the ring's width | Figma has no focus state, so it draws the ring as a layer; in code it is not an element. |
Selected | aria-selected, aria-pressed or checked | The element's own selection state, by what the element is, so assistive technology announces it. |
Disabled | disabled, or aria-disabled where it must stay focusable | The element's own state: the browser keeps it out of the tab order and out of form submission. |
State: Focus, Hover, Press | :focus-visible, :hover, :active | Pseudo-classes the browser sets, so a template cannot claim a state the control is not in. |
| Change | Type | Figma files | Code | Details |
|---|---|---|---|---|
| Navigation button: fill | Restyled | Minor | Minor |
| Change | Type | Figma files | Code | Details |
|---|---|---|---|---|
| Label: width | Restyled | Breaking | Minor | |
| Label: height | Restyled | Breaking | Minor | |
| Label: position | Restyled | Breaking | Minor | |
| Navigation button: width | Restyled | Breaking | Minor | |
| Focus ring: width | Restyled | Breaking | Minor | |
| Label: text style · 2 variants | Restyled | Minor | Minor | |
| Label: line height | Restyled | Minor | Minor | |
| Label: letter spacing | Restyled | Minor | Minor |
| Change | Type | Figma files | Code | Details |
|---|---|---|---|---|
| Label: sizing | Restyled | Minor | Minor | |
| Navigation button: sizing | Restyled | Minor | Minor | |
| Label: text sizing | Restyled | Minor | Minor |
| Change | Type | Figma files | Code | Details |
|---|---|---|---|---|
| Description | Docs | Patch | Patch |
| Change | Type | Figma files | Code | Details |
|---|---|---|---|---|
| Label: sizing | Restyled | Minor | Minor | |
| Navigation button: sizing | Restyled | Minor | Minor | |
| Label: height | Restyled | Minor | Minor | |
| Label: position | Restyled | Minor | Minor | |
| Label: line height | Restyled | Minor | Minor |
| Change | Type | Figma files | Code | Details |
|---|---|---|---|---|
| Navigation button: fill · 3 variants | Restyled | Minor | Minor | |
| Name | Renamed | Patch | Minor | |
| Page | Docs | Patch | Patch |