Repository navigation
Open
Labels
Milestone
Description
Modernize the existing BottomNavigationBar to reuse theme tokens (color, shape, motion, typography etc) and make sure the MD3 specs are respected. See the expressive update too: https://m3.material.io/components/navigation-bar/overview
Current State
Bottom Navigation
MD3 spec: Navigation bar
Specs link: https://m3.material.io/components/navigation-bar/specs
Notes
BottomNavigationis a router-aware wrapper aroundBottomNavigation.Barthat handles scene management and tab transitions. MD3 compliance is governed byBottomNavigation.Barbelow.
Bottom Navigation Bar
MD3 spec: Navigation bar
Specs link: https://m3.material.io/components/navigation-bar/specs
Color tokens
- Container
surfaceContainer✅ - Active icon
onSecondaryContainer✅ - Active indicator
secondaryContainer✅ - Inactive icon
onSurfaceVariant✅ - Inactive label
onSurfaceVariant✅ - Active label uses
onSurface. Spec tokenNav bar item active label text colormaps tosecondary
Spacing / sizing
- Active indicator 64x32dp with 16dp corner radius ✅
- Icon-to-label gap 4dp (
marginBottom: 4on icon container) ✅ -
v3NoLabelContainerheight is hardcoded to 80dp. Spec requires 64dp -
BAR_HEIGHT = 56constant is used for label height styling. Spec bar height is 64dp
Behavior
-
shiftingmode (inactive tabs hide labels) is an MD2 pattern not present in MD3 labeled={false}hides all labels (not in MD3 spec, but a deliberate extension used by Google’s own products e.g. Gmail) ✅-
rippleColor: 'transparent'suppresses state layer feedback. MD3 requires visible state layers (8% hovered, 10% focused/pressed) - Flexible navigation bar (horizontal items for medium windows) not implemented. M3 Expressive requires horizontal layout support
- Baseline navigation bar is not recommended in M3 Expressive; flexible variant should replace it
Notes
- Rename to match MD3:
NavigationBar
Activity
test(navigation-bar): add characterization tests before refactor
refactor(navigation-bar): collapse cross-fade, dedupe item render
refactor(navigation-bar): unify color source on colorRoles
docs(navigation-bar): register NavigationBar page, fix docs build
refactor(navigation-bar): extract module + deprecate Bar alias
feat(navigation-bar): apply MD3 token-based colors and sizing
refactor(navigation-bar): remove MD2 shifting mode from the bar
feat(navigation-bar): add visible MD3 state layers
feat(navigation-bar): drive motion from tokens and spring the indicator
feat(navigation-bar): add flexible horizontal variant
docs(navigation-bar): add example and update JSDoc
fix(navigation-bar): restore labels and active indicator on tab change
test(navigation-bar): drop redundant shifting test variants
test(navigation-bar): add characterization tests before refactor
refactor(navigation-bar): collapse cross-fade, dedupe item render
refactor(navigation-bar): unify color source on colorRoles
docs(navigation-bar): register NavigationBar page, fix docs build