Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 4 additions & 1 deletion packages/nhsuk-frontend-review/src/examples/button-group.njk
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
<a href="#" class="nhsuk-link">Buy it</a>

{{ button({
"text": "Use it"
"text": "Use it",
attributes: {
style: "min-width: 150px;"
}
}) }}

{{ button({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,15 @@
// Prevent links overflowing their container in IE10/11 because of bug
// with align-items: center
max-width: 100%;
margin-top: $button-padding-top-bottom-desktop + $nhsuk-border-width-form-element;
margin-bottom: $button-padding-top-bottom-desktop + $nhsuk-border-width-form-element;
margin-top: $link-spacing;
margin-bottom: $link-spacing + $vertical-gap;
text-align: center;
@include nhsuk-font($size: 19);

@include nhsuk-media-query($until: tablet) {
margin-top: $link-spacing;
margin-bottom: $link-spacing + $vertical-gap;
}
}

// Reduce the bottom margin to the size of the vertical gap (accommodating
// the button shadow) – the 'lost' margin is moved to the button-group.
.nhsuk-button {
> .nhsuk-button {
margin-bottom: $vertical-gap + $button-shadow-size;
}

Expand All @@ -80,12 +75,17 @@
.nhsuk-body,
.nhsuk-body-m,
p,
> .nhsuk-button,
> .nhsuk-link,
> a:not(.nhsuk-button) {
margin-top: $button-padding-top-bottom-desktop + $nhsuk-border-width-form-element;
margin-bottom: $button-padding-top-bottom-desktop + $nhsuk-border-width-form-element;
margin-right: $horizontal-gap;
text-align: left;
}

> .nhsuk-button {
margin-right: $horizontal-gap;
}
}
}
}