الإجراءات
Button
The rectangular action control of every Cave product.
المعاينة
الإرشادات
Provide a text label (and optionally one leading icon), and put cv-btn plus a variant on a real <button>. Use one primary per view; secondary for the other actions on the same level; tertiary for low-emphasis links and in-table actions; danger only for destructive confirmations, never for "Cancel".
- Corners are
radius-control(10px). Buttons are never pills: pills mean badges, chips and tabs. - Heights are 32 (
sm, dense tables and toolbars), 40 (default) and 48 (lg, touch surfaces and full-width form actions). Touch targets are at least 44px, so uselgon mobile. primaryisaccent-strongwithon-accent-strongtext: white onlagoonin light (5.6:1), navy ontealin dark (4.55:1). Brandtealis not a button fill.- Loading: set
aria-busy="true", showcv-spinnerbefore the label, and keep the label so the width does not jump. Disabled: thedisabledattribute; explain why in nearby text. - Focus is a solid 2px
focus-ringoutline with a 2px offset; do not remove it. - Label with a verb ("Save changes", "Add product"), sentence case, no full stops. Capitals and tracking are for
labeltext only. - Icon-only buttons (
cv-icon-btn) need anaria-labeland a tooltip.