fix(web): enforce single primary button per visible context #74

Closed
opened 2026-02-13 19:01:26 +00:00 by forbes · 0 comments
Owner

Ref: docs/STYLE.md § Components / Buttons

Primary is used once per visible context (the main action). All other actions use secondary or ghost.

Several forms show multiple mauve-styled buttons simultaneously:

  • web/src/components/items/CreateItemPane.tsx — Create + Cancel both styled prominently
  • web/src/pages/ProjectsPage.tsx — Create Project / Save Changes alongside Cancel
  • web/src/pages/SchemasPage.tsx — Save + Cancel in inline table edits

Fix: Keep only the primary action (Create/Save) as .btn-primary (mauve). Cancel buttons should use secondary style (background: var(--ctp-surface0), border: var(--ctp-surface1), color: var(--ctp-text)).

**Ref:** `docs/STYLE.md` § Components / Buttons > Primary is used once per visible context (the main action). All other actions use secondary or ghost. Several forms show multiple mauve-styled buttons simultaneously: - `web/src/components/items/CreateItemPane.tsx` — Create + Cancel both styled prominently - `web/src/pages/ProjectsPage.tsx` — Create Project / Save Changes alongside Cancel - `web/src/pages/SchemasPage.tsx` — Save + Cancel in inline table edits **Fix:** Keep only the primary action (Create/Save) as `.btn-primary` (mauve). Cancel buttons should use secondary style (`background: var(--ctp-surface0)`, `border: var(--ctp-surface1)`, `color: var(--ctp-text)`).
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/silo#74