diff --git a/src/app/medications/page.tsx b/src/app/medications/page.tsx index 9128f9d43..70ba80ec8 100644 --- a/src/app/medications/page.tsx +++ b/src/app/medications/page.tsx @@ -120,7 +120,7 @@ export default function MedicationsPage() { if (!isAuthenticated) { return ( -
+

{t("medications.title")} @@ -143,7 +143,7 @@ export default function MedicationsPage() { const inactiveMeds = medsArray.filter((m) => !m.active).sort(byName); return ( -
+

@@ -195,7 +195,7 @@ export default function MedicationsPage() { } /> ) : ( -
+
{/* Active medications */} {activeMeds.length > 0 && (
diff --git a/src/components/admin/admin-shell.tsx b/src/components/admin/admin-shell.tsx index b2a88204b..9b4f395f6 100644 --- a/src/components/admin/admin-shell.tsx +++ b/src/components/admin/admin-shell.tsx @@ -170,7 +170,10 @@ export function AdminShell({ active, children }: AdminShellProps) { href="/admin" aria-current={activeSlug === null ? "page" : undefined} className={cn( - "flex items-center gap-2 rounded-full border px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors", + // v1.4.25 W8 — chip strip is the primary mobile-admin + // navigation surface. Pad to WCAG 2.5.5 44 px so the + // chips can be tapped without zoom on a Pixel-5. + "flex min-h-11 items-center gap-2 rounded-full border px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors", activeSlug === null ? "border-primary/40 bg-primary/10 text-primary" : "border-border text-foreground hover:bg-accent", @@ -189,7 +192,10 @@ export function AdminShell({ active, children }: AdminShellProps) { href={`/admin/${section.slug}`} aria-current={isActive ? "page" : undefined} className={cn( - "flex items-center gap-2 rounded-full border px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors", + // v1.4.25 W8 — chip strip is the primary mobile-admin + // navigation surface. Pad to WCAG 2.5.5 44 px so the + // chips can be tapped without zoom on a Pixel-5. + "flex min-h-11 items-center gap-2 rounded-full border px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors", isActive ? "border-primary/40 bg-primary/10 text-primary" : "border-border text-foreground hover:bg-accent", diff --git a/src/components/layout/top-bar.tsx b/src/components/layout/top-bar.tsx index 4bf0fa2fc..9bc4cfe82 100644 --- a/src/components/layout/top-bar.tsx +++ b/src/components/layout/top-bar.tsx @@ -61,7 +61,9 @@ export function TopBar() { {user.username} @@ -128,7 +130,8 @@ export function TopBar() { ) : ( {t("nav.login")} diff --git a/src/components/medications/medication-form.tsx b/src/components/medications/medication-form.tsx index f3d659149..46c0b7b54 100644 --- a/src/components/medications/medication-form.tsx +++ b/src/components/medications/medication-form.tsx @@ -849,7 +849,7 @@ export function MedicationForm({ onClick={() => updateSchedule(i, "intervalWeeks", weeks) } - className={`h-8 rounded-md border text-xs font-medium transition-colors ${ + className={`min-h-11 rounded-md border text-xs font-medium transition-colors ${ s.intervalWeeks === weeks ? "border-primary bg-primary text-primary-foreground" : "border-border/70 bg-muted text-foreground/70 hover:bg-accent hover:text-foreground" diff --git a/src/components/settings/settings-shell.tsx b/src/components/settings/settings-shell.tsx index bf15a02da..9fea112ef 100644 --- a/src/components/settings/settings-shell.tsx +++ b/src/components/settings/settings-shell.tsx @@ -158,7 +158,10 @@ export function SettingsShell({ active, children }: SettingsShellProps) { href={`/settings/${section.slug}`} aria-current={isActive ? "page" : undefined} className={cn( - "flex items-center gap-2 rounded-full border px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors", + // v1.4.25 W8 — chip strip is the primary mobile-settings + // navigation surface. Pad to WCAG 2.5.5 44 px so the + // chips can be tapped without zoom on a Pixel-5. + "flex min-h-11 items-center gap-2 rounded-full border px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors", isActive ? "border-primary/40 bg-primary/10 text-primary" : "border-border text-foreground hover:bg-accent",