mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
ui(buttons): tighten min-h floors on Arztbericht and dismiss CTAs
P3-2: pair the Arztbericht hero CTA's explicit h-11 with a min-h-11 floor (and sm:min-h-9 on desktop) so a future className override can not accidentally re-lift the mobile minimum below the touch-target contract. P3-3: drop the dashboard onboarding checklist's sm:min-h-10 (a no-op against the Button default of h-10) down to sm:min-h-9 to match the Hinzufuegen menu trigger pattern. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
1440c77396
commit
bc1f384e5c
2 files changed
+10
-2
No files matched your search
@@ -365,7 +365,11 @@ export function GettingStartedChecklist() {
|
||||
// few primary buttons rendered above the fold on the
|
||||
// onboarded-user dashboard so the regression was visible to
|
||||
// the touch-target spec.
|
||||
className="text-muted-foreground hover:text-foreground min-h-11 sm:min-h-10"
|
||||
// v1.4.38 W-D P3-3 — align the desktop floor with the
|
||||
// dashboard +Hinzufügen pattern (`sm:min-h-9`); the
|
||||
// `sm:min-h-10` here was a no-op against the Button default
|
||||
// of `h-10`.
|
||||
className="text-muted-foreground hover:text-foreground min-h-11 sm:min-h-9"
|
||||
onClick={() => setDismissedAll(true)}
|
||||
>
|
||||
{t("gettingStarted.dismissAll")}
|
||||
|
||||
@@ -163,7 +163,11 @@ export function ArztberichtHeroCard() {
|
||||
// `min-h-11` (44 px) is the WCAG 2.5.5 touch-target floor;
|
||||
// we override the default `<Button>` height on mobile and
|
||||
// fall back to the compact `sm:h-10` on pointer devices.
|
||||
className="h-11 px-5 text-sm font-medium sm:h-10"
|
||||
// v1.4.38 W-D P3-2 — pair the explicit `h-11` with a
|
||||
// `min-h-11` floor (and a `sm:min-h-9` desktop floor) so a
|
||||
// future className override can't accidentally re-lift the
|
||||
// mobile minimum below the touch-target contract.
|
||||
className="h-11 min-h-11 px-5 text-sm font-medium sm:h-10 sm:min-h-9"
|
||||
onClick={() => setOpen(true)}
|
||||
disabled={busy}
|
||||
aria-describedby={valueStatementId}
|
||||
|
||||
Reference in new issue
Block a user