-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add guidance for secondary and warning buttons
This makes the following additions to the button component page: - examples and guidance for new button styles—secondary buttons, warning buttons - a default button example and guidance Co-authored-by: Tim Paul <contact@timpaul.co.uk> Co-authored-by: amyhupe <amy.hupe@digital.cabinet-office.gov.uk>
- Loading branch information
Showing
4 changed files
with
76 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
title: Secondary button combo | ||
layout: layout-example.njk | ||
--- | ||
{% from "button/macro.njk" import govukButton %} | ||
|
||
{{ govukButton({ | ||
text: "Save and continue", | ||
classes: "govuk-!-margin-right-1" | ||
}) }} | ||
|
||
{{ govukButton({ | ||
text: "Save as draft", | ||
classes: "govuk-button--secondary" | ||
}) }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Secondary button | ||
layout: layout-example.njk | ||
--- | ||
{% from "button/macro.njk" import govukButton %} | ||
|
||
{{ govukButton({ | ||
text: "Find address", | ||
classes: "govuk-button--secondary" | ||
}) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Warning button | ||
layout: layout-example.njk | ||
--- | ||
{% from "button/macro.njk" import govukButton %} | ||
|
||
{{ govukButton({ | ||
text: "Delete account", | ||
classes: "govuk-button--warning" | ||
}) }} |