Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adding button size to documentation #595

Merged
merged 1 commit into from
Jan 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/www/pages/components/buttons/index.njk.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ There are two types of button used in this design system - buttons and [link bu

Icons should only be used where it is deemed absolutely necessary to communicate the meaning of an action.

### Button Size

- The button width on desktop should be proportional with the text inside the button. Desktop buttons are aligned to the left edge of the content container.
- Buttons are full-width on mobile. This is so users can easily tap on a button without stretching their thumb.
- For the Question Form pattern, the ‘Continue’ call to action button should always be full-width within the container on desktop and mobile devices.

---

## Call to action buttons
Expand Down