diff --git a/src/app/globals.css b/src/app/globals.css index 5bec713b7..baef81560 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -663,9 +663,16 @@ .ui-tab-badge-active { @apply bg-status-positive-subtle text-status-positive; } - /* Text + icon "add" link button */ + /* Text + icon "add" link button. + min-h-11 (44px) on mobile gives a real WCAG 2.5.5 tap target; + sm:min-h-0 collapses to natural line height on desktop where hover is reliable. */ .ui-btn-add { - @apply flex items-center gap-1.5 text-xs text-text-muted transition-colors hover:text-accent-text; + @apply flex items-center gap-1.5 min-h-11 sm:min-h-0 text-xs text-text-muted transition-colors hover:text-accent-text; + } + /* Same shape, but achievement-flavored sites (habits, commitments, milestones, goals) + hover green to read as "create something good" rather than generic accent. */ + .ui-btn-add-success { + @apply flex items-center gap-1.5 min-h-11 sm:min-h-0 text-xs text-text-tertiary transition-colors hover:text-status-positive; } /* Full-width accent submit button (modal forms) */ .ui-btn-submit { diff --git a/src/components/goals/goal-milestone-helpers.tsx b/src/components/goals/goal-milestone-helpers.tsx index 51dda327c..3926617e5 100644 --- a/src/components/goals/goal-milestone-helpers.tsx +++ b/src/components/goals/goal-milestone-helpers.tsx @@ -39,7 +39,7 @@ export function AddMilestoneInline({ return ( diff --git a/src/components/projects/ProjectOverviewTab.tsx b/src/components/projects/ProjectOverviewTab.tsx index 13828a758..8d3d91d35 100644 --- a/src/components/projects/ProjectOverviewTab.tsx +++ b/src/components/projects/ProjectOverviewTab.tsx @@ -313,7 +313,7 @@ export function OverviewTab({ ) : !data.readonly && ( diff --git a/src/components/projects/ProjectPromptsTab.tsx b/src/components/projects/ProjectPromptsTab.tsx index 92d3345b0..68d92a14d 100644 --- a/src/components/projects/ProjectPromptsTab.tsx +++ b/src/components/projects/ProjectPromptsTab.tsx @@ -92,7 +92,7 @@ function NewJobForm({ return ( diff --git a/src/components/today/AddCommitmentButton.tsx b/src/components/today/AddCommitmentButton.tsx index c26daa178..56083ae7d 100644 --- a/src/components/today/AddCommitmentButton.tsx +++ b/src/components/today/AddCommitmentButton.tsx @@ -40,7 +40,7 @@ export function AddCommitmentButton() { return ( diff --git a/src/components/today/AddHabitForm.tsx b/src/components/today/AddHabitForm.tsx index dc511972a..a9b9d0fb0 100644 --- a/src/components/today/AddHabitForm.tsx +++ b/src/components/today/AddHabitForm.tsx @@ -86,11 +86,7 @@ export function AddHabitForm({ return (