Skip to content

Commit e61e890

Browse files
Rename secondary white button to secondary solid (#1295)
1 parent 63e1bbd commit e61e890

File tree

60 files changed

+30
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+30
-30
lines changed

app/components/all-buttons.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
<div class="nhsuk-form-group">
261261
{{ button({
262262
"text": "Find my location",
263-
"classes": "nhsuk-button--secondary-white-background nhsuk-u-margin-bottom-0"
263+
"classes": "nhsuk-button--secondary-solid nhsuk-u-margin-bottom-0"
264264
}) }}
265265
</div>
266266
</div>
@@ -271,7 +271,7 @@
271271
<div class="nhsuk-form-group">
272272
{{ button({
273273
"text": "Find my location",
274-
"classes": "nhsuk-button--secondary-white-background nhsuk-u-margin-bottom-0",
274+
"classes": "nhsuk-button--secondary-solid nhsuk-u-margin-bottom-0",
275275
"href": "#"
276276
}) }}
277277
</div>
@@ -283,7 +283,7 @@
283283
<div class="nhsuk-form-group">
284284
{{ button({
285285
"text": "Find my location",
286-
"classes": "nhsuk-button--secondary-white-background nhsuk-u-margin-bottom-0",
286+
"classes": "nhsuk-button--secondary-solid nhsuk-u-margin-bottom-0",
287287
"disabled": true
288288
}) }}
289289
</div>

app/components/button/secondary-white-disabled.njk renamed to app/components/button/secondary-solid-disabled.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set title = 'Button secondary white disabled' %}
1+
{% set title = 'Button secondary solid disabled' %}
22
{% from 'components/button/macro.njk' import button %}
33
{% extends 'example.njk' %}
44

@@ -12,7 +12,7 @@
1212
<div class="nhsuk-grid-column-two-thirds">
1313
{{ button({
1414
"text": "Find my location",
15-
"classes": "nhsuk-button--secondary-white-background",
15+
"classes": "nhsuk-button--secondary-solid",
1616
"disabled": true
1717
}) }}
1818
</div>

app/components/button/secondary-white-link.njk renamed to app/components/button/secondary-solid-link.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set title = 'Button secondary white as a link' %}
1+
{% set title = 'Button secondary solid as a link' %}
22
{% from 'components/button/macro.njk' import button %}
33
{% extends 'example.njk' %}
44

@@ -12,7 +12,7 @@
1212
<div class="nhsuk-grid-column-two-thirds">
1313
{{ button({
1414
"text": "Find my location",
15-
"classes": "nhsuk-button--secondary-white-background",
15+
"classes": "nhsuk-button--secondary-solid",
1616
"href": "#"
1717
}) }}
1818
</div>

app/components/button/secondary-white.njk renamed to app/components/button/secondary-solid.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set title = 'Button secondary white' %}
1+
{% set title = 'Button secondary solid' %}
22
{% from 'components/button/macro.njk' import button %}
33
{% extends 'example.njk' %}
44

@@ -12,7 +12,7 @@
1212
<div class="nhsuk-grid-column-two-thirds">
1313
{{ button({
1414
"text": "Find my location",
15-
"classes": "nhsuk-button--secondary-white-background"
15+
"classes": "nhsuk-button--secondary-solid"
1616
}) }}
1717
</div>
1818
</div>

app/index.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
<li><a href="components/button/secondary.html">Button secondary</a></li>
3535
<li><a href="components/button/secondary-disabled.html">Button secondary disabled</a></li>
3636
<li><a href="components/button/secondary-link.html">Button secondary as a link</a></li>
37-
<li><a href="components/button/secondary-white.html">Button secondary – white background</a></li>
38-
<li><a href="components/button/secondary-white-disabled.html">Button secondary disabled – white background</a></li>
39-
<li><a href="components/button/secondary-white-link.html">Button secondary as a link – white background</a></li>
37+
<li><a href="components/button/secondary-solid.html">Button secondary – solid background</a></li>
38+
<li><a href="components/button/secondary-solid-disabled.html">Button secondary disabled – solid background</a></li>
39+
<li><a href="components/button/secondary-solid-link.html">Button secondary as a link – solid background</a></li>
4040
<li><a href="components/button/reverse.html">Button reverse</a></li>
4141
<li><a href="components/button/reverse-disabled.html">Button reverse disabled</a></li>
4242
<li><a href="components/button/reverse-link.html">Button reverse as a link</a></li>

backstop.config.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -164,36 +164,36 @@ module.exports = {
164164
url: `${BASE_URL}/components/button/secondary-link.html`
165165
},
166166
{
167-
label: 'Button secondary, white background',
168-
url: `${BASE_URL}/components/button/secondary-white.html`
167+
label: 'Button secondary, solid background',
168+
url: `${BASE_URL}/components/button/secondary-solid.html`
169169
},
170170
{
171171
clickSelector: '.nhsuk-button',
172-
label: 'Button secondary click, white background',
173-
url: `${BASE_URL}/components/button/secondary-white.html`
172+
label: 'Button secondary click, solid background',
173+
url: `${BASE_URL}/components/button/secondary-solid.html`
174174
},
175175
{
176176
hoverSelector: '.nhsuk-button',
177-
label: 'Button secondary hover, white background',
178-
url: `${BASE_URL}/components/button/secondary-white.html`
177+
label: 'Button secondary hover, solid background',
178+
url: `${BASE_URL}/components/button/secondary-solid.html`
179179
},
180180
{
181-
label: 'Button secondary disabled, white background',
182-
url: `${BASE_URL}/components/button/secondary-white-disabled.html`
181+
label: 'Button secondary disabled, solid background',
182+
url: `${BASE_URL}/components/button/secondary-solid-disabled.html`
183183
},
184184
{
185-
label: 'Button secondary as a link, white background',
186-
url: `${BASE_URL}/components/button/secondary-white-link.html`
185+
label: 'Button secondary as a link, solid background',
186+
url: `${BASE_URL}/components/button/secondary-solid-link.html`
187187
},
188188
{
189189
clickSelector: '.nhsuk-button',
190-
label: 'Button secondary as a link click, white background',
191-
url: `${BASE_URL}/components/button/secondary-white-link.html`
190+
label: 'Button secondary as a link click, solid background',
191+
url: `${BASE_URL}/components/button/secondary-solid-link.html`
192192
},
193193
{
194194
hoverSelector: '.nhsuk-button',
195-
label: 'Button secondary as a link hover, white background',
196-
url: `${BASE_URL}/components/button/secondary-white-link.html`
195+
label: 'Button secondary as a link hover, solid background',
196+
url: `${BASE_URL}/components/button/secondary-solid-link.html`
197197
},
198198
{
199199
label: 'Button reverse',

packages/components/button/_index.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ $button-padding-left-right: 16px;
143143
/// Button variations
144144

145145
.nhsuk-button--secondary,
146-
.nhsuk-button--secondary-white-background {
146+
.nhsuk-button--secondary-solid {
147147
&,
148148
&:link,
149149
&:visited,
@@ -182,8 +182,8 @@ $button-padding-left-right: 16px;
182182
background-color: $nhsuk-secondary-button-color;
183183
}
184184

185-
.nhsuk-button--secondary-white-background {
186-
background-color: $nhsuk-secondary-button-white-background-color;
185+
.nhsuk-button--secondary-solid {
186+
background-color: $nhsuk-secondary-button-solid-background-color;
187187
}
188188

189189
.nhsuk-button--reverse {

packages/core/settings/_colours.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ $nhsuk-button-active-color: shade($nhsuk-button-color, 50%);
137137
$nhsuk-button-shadow-color: shade($nhsuk-button-color, 50%);
138138

139139
$nhsuk-secondary-button-color: transparent;
140-
$nhsuk-secondary-button-white-background-color: $color_nhsuk-white;
140+
$nhsuk-secondary-button-solid-background-color: $color_nhsuk-white;
141141
$nhsuk-secondary-button-border-color: $color_nhsuk-blue;
142142
$nhsuk-secondary-button-text-color: $color_nhsuk-blue;
143143
$nhsuk-secondary-button-hover-color: tint($nhsuk-secondary-button-border-color, 85%);
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)