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 -25
View File
@@ -274,31 +274,9 @@
gap: 8px;
}
.mobile-menu-segment-option {
min-height: 44px;
padding: 8px 16px;
border: 1px solid var(--border-strong);
border-radius: var(--radius-md);
background: none;
color: var(--text-secondary);
cursor: pointer;
transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
.mobile-menu-segment-option.active {
background: var(--bg-elevated);
border-color: var(--accent);
color: var(--text-primary);
}
.mobile-menu-segment-option:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Icon-only options in the sheet share this shape — the segmented row's 44px target, border and
radius — for the Theme color dots (.nav-palette-preview) and the Language globe/flag. The Mode
row keeps .mobile-menu-segment-option, because its options are words. */
/* Icon-only options in the sheet share this shape — the 44px target, border and radius — for
the Theme color dots (.nav-palette-preview), the Language globe/flag, and the Mode row's
sun/moon, which is the same line art the bar's theme control draws. */
.mobile-menu-icon-option {
display: flex;
align-items: center;