feat(nav): Mode row in the sheet becomes icon-only with the bar's sun/moon

- Extract SunIcon/MoonIcon from the bar theme control into src/components/ui/icons.tsx
  (exact geometry and attributes, so the bar renders identically)
- MobileMenu Mode row: Dark option draws MoonIcon, Light draws SunIcon in the
  .mobile-menu-icon-option square the Language and Theme color rows use,
  aria-pressed + translated aria-label/title
- Delete .mobile-menu-segment-option (3 rule groups) from App.css — last user gone
- AGENTS.md picker paragraph, spec-v3-mobile-navigation.md (Q18 + progress row),
  spec-v3-i18n.md cross-reference updated
This commit is contained in:
dong.nguyen committed 2026-10-20 19:56:08 +07:00
1 parent 4d4fd066cc
commit 609067c6c9
7 files changed
+43 -42

No files matched your search

+3 -2
View File
@@ -442,8 +442,9 @@ switches TO — the same contract the old glyph had.
| CSS | `.nav-control` chrome only; `.lang-toggle` carries no rules of its own — it marks the button in the DOM |
**Sheet** (`src/components/layout/MobileMenu.tsx`): the Language row's two options are
`.mobile-menu-icon-option` — the 44px icon-only square the Theme color row uses. The Mode row keeps
`.mobile-menu-segment-option`, because its options are words. Each option carries `aria-pressed` and
`.mobile-menu-icon-option` — the 44px icon-only square the Theme color and Mode rows use as
well (the Mode row's word options and `.mobile-menu-segment-option` were retired 2026-10-20,
see `spec-v3-mobile-navigation.md` Q18). Each option carries `aria-pressed` and
its own-language name in `aria-label` and `title`: an icon alone cannot say which language it is.
`langEn` / `langVi` stay flat `{en, vi}` records. A nested `langName: { en: …, vi: … }` record inside