Buttons
Every button the package draws, at rest and with the keyboard's focus ring, measured in your browser against the tokens for its size. A value off its size is marked ≠. Hover any of them to see its hover.
The sizes
- default: the default control: --control-height tall, 12px by 20px of padding, --radius-button, 600 at 14px, a 1px border
- small: the small control: --control-height-small tall, 4px by 12px of padding, --radius-button, 600 at 13px, a 1px border
- icon-small: an icon-only small control: a --control-height-small square, --radius-button, a 1px border
- tag-x: a removable tag's x: a 24px circle with no border (D-52); a phone's touch box overhangs (D-65)
- filter: a filter chip: the small control's height, a pill (999px), 500 at 14px; a filter, not an action
- google: Google's own button (D-35): Google's sizes and colours, not ours
| Variant | At rest | Focus ring | Box | Type | Paint | Ring |
|---|---|---|---|---|---|---|
| Actions, default size | ||||||
| Primary | ||||||
| Primary, a link | Open SiteSpring | Open SiteSpring | ||||
| Secondary (ghost) | ||||||
| Secondary, a link | See the changes | See the changes | ||||
| Destructive | ||||||
| Success | ||||||
| Warning | ||||||
| Critical | ||||||
| With an icon | ||||||
| Ghost with an icon | ||||||
| Hold to confirm | Delete site | Delete site | ||||
| Actions, small size | ||||||
| Primary, small | ||||||
| Ghost, small (the theme preview's Use) | ||||||
| Destructive, small | ||||||
| Icon only, small | ||||||
| A notice's action | AdvarselYour trial ends in 3 days. Choose a plan | AdvarselYour trial ends in 3 days. Choose a plan | ||||
| A dialog's trigger, small | Rename | Rename | ||||
| A bar menu (org, products) | ||||||
| A file input's button | ||||||
| A toast's Undo | Done: The page is archived. Dismiss | Done: The page is archived. Dismiss | ||||
| A toast's close | Note: The export has started. Dismiss | Note: The export has started. Dismiss | ||||
| The strip's way out (D-48) | You are viewing as a viewer. Stop viewing as | You are viewing as a viewer. Stop viewing as | ||||
| Copy (the connect panel) | ||||||
| States | ||||||
| Working (D-53) | ||||||
| Done (D-53) | ||||||
| Unavailable until the name is typed (D-23) | ||||||
| Shapes of their own | ||||||
| A removable tag's x | Chef | Chef | ||||
| A filter chip | Overdue 3 | Overdue 3 | ||||
| Continue with Google | ||||||
In a row
A form's actions (D-69): one row, the primary first, the destructive one at the end, wrapping only when there is no room.
Products draw these with @forspring/ui's classes and helpers; a product's own button is held to the same sizes by ui-audit's control rules.