katalyst-govuk-formbuilder 1.7.1 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/builds/katalyst/govuk/formbuilder.css +56 -103
  3. data/app/assets/builds/katalyst/govuk/formbuilder.js +69 -58
  4. data/app/assets/builds/katalyst/govuk/formbuilder.min.js +12 -12
  5. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/accordion/_index.scss +1 -1
  6. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/back-link/_index.scss +1 -1
  7. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/button/_index.scss +1 -1
  8. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/character-count/_index.scss +1 -1
  9. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +46 -53
  10. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/error-summary/_index.scss +1 -1
  11. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/fieldset/_index.scss +3 -3
  12. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/footer/_index.scss +1 -1
  13. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/header/_index.scss +24 -7
  14. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/input/_index.scss +5 -10
  15. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/label/_index.scss +3 -3
  16. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +2 -2
  17. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/panel/_index.scss +2 -2
  18. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +8 -2
  19. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/radios/_index.scss +52 -59
  20. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/skip-link/_index.scss +1 -1
  21. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/summary-list/_index.scss +1 -1
  22. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/table/_index.scss +14 -4
  23. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/tabs/_index.scss +1 -1
  24. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/core/_all.scss +1 -1
  25. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +12 -0
  26. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/core/_typography.scss +3 -1
  27. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/helpers/_typography.scss +102 -24
  28. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/overrides/_typography.scss +11 -2
  29. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/settings/_measurements.scss +1 -1
  30. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/settings/_media-queries.scss +1 -1
  31. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +177 -13
  32. metadata +4 -4
  33. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/core/_govuk-frontend-version.scss +0 -7
@@ -6,6 +6,12 @@
6
6
  $govuk-header-link-active: #1d8feb;
7
7
  $govuk-header-nav-item-border-color: #2e3133;
8
8
  $govuk-header-link-underline-thickness: 3px;
9
+ $govuk-header-vertical-spacing-value: 2;
10
+ // This crown height is only used to calculate top offset of mobile menu button
11
+ // as the crown svg height is the only thing that controls the height of the header
12
+ $govuk-header-crown-height: 30px;
13
+ $govuk-header-menu-button-height: 24px;
14
+ $govuk-header-menu-button-width: 80px;
9
15
 
10
16
  .govuk-header {
11
17
  @include govuk-font($size: 16, $line-height: 1);
@@ -28,7 +34,7 @@
28
34
  @include govuk-clearfix;
29
35
  position: relative;
30
36
  margin-bottom: -$govuk-header-border-width;
31
- padding-top: govuk-spacing(2);
37
+ padding-top: govuk-spacing($govuk-header-vertical-spacing-value);
32
38
  border-bottom: $govuk-header-border-width solid $govuk-header-border-color;
33
39
  }
34
40
 
@@ -61,7 +67,7 @@
61
67
  $product-name-offset: 10px;
62
68
  $product-name-offset-tablet: 5px;
63
69
 
64
- @include govuk-typography-responsive($size: 24, $override-line-height: 1);
70
+ @include govuk-font-size($size: 24, $line-height: 1);
65
71
  @include govuk-typography-weight-regular;
66
72
  display: inline-table;
67
73
 
@@ -150,7 +156,7 @@
150
156
  .govuk-header__service-name {
151
157
  display: inline-block;
152
158
  margin-bottom: govuk-spacing(2);
153
- @include govuk-typography-responsive($size: 24);
159
+ @include govuk-font-size($size: 24);
154
160
  @include govuk-typography-weight-bold;
155
161
  }
156
162
 
@@ -160,8 +166,10 @@
160
166
  }
161
167
 
162
168
  .govuk-header__logo {
163
- @include govuk-responsive-margin(2, "bottom");
164
- padding-right: govuk-spacing(8);
169
+ @include govuk-responsive-margin($govuk-header-vertical-spacing-value, "bottom");
170
+ // Protect the absolute positioned menu button from overlapping with the
171
+ // logo with right padding using the button's width
172
+ padding-right: $govuk-header-menu-button-width;
165
173
 
166
174
  @include govuk-media-query($from: desktop) {
167
175
  width: 33.33%;
@@ -189,13 +197,22 @@
189
197
  .govuk-header__menu-button {
190
198
  @include govuk-font($size: 16);
191
199
  position: absolute;
192
- top: govuk-spacing(4);
200
+ // calculate top offset by:
201
+ // - getting the vertical spacing for the top and the bottom of the header
202
+ // - adding that to the crown height
203
+ // - dividing it by 2 so you have the vertical centre of the header
204
+ // - subtracting half the height of the menu button
205
+ top: (((govuk-spacing($govuk-header-vertical-spacing-value) * 2) + $govuk-header-crown-height) / 2) -
206
+ ($govuk-header-menu-button-height / 2);
193
207
  right: 0;
208
+ max-width: $govuk-header-menu-button-width;
209
+ min-height: $govuk-header-menu-button-height;
194
210
  margin: 0;
195
211
  padding: 0;
196
212
  border: 0;
197
213
  color: govuk-colour("white");
198
214
  background: none;
215
+ word-break: break-all;
199
216
  cursor: pointer;
200
217
 
201
218
  &:hover {
@@ -272,7 +289,7 @@
272
289
  }
273
290
 
274
291
  a {
275
- @include govuk-typography-responsive($size: 16);
292
+ @include govuk-font-size($size: 16);
276
293
  @include govuk-typography-weight-bold;
277
294
  white-space: nowrap;
278
295
  }
@@ -58,7 +58,7 @@
58
58
  }
59
59
 
60
60
  .govuk-input--extra-letter-spacing {
61
- @include govuk-font(false, $tabular: true);
61
+ @include govuk-font-tabular-numbers;
62
62
  letter-spacing: 0.05em;
63
63
  }
64
64
 
@@ -119,26 +119,21 @@
119
119
  .govuk-input__prefix,
120
120
  .govuk-input__suffix {
121
121
  @include govuk-font($size: 19);
122
-
123
122
  box-sizing: border-box;
124
- display: inline-block;
123
+ // Use flexbox to align text within the prefix and suffix
124
+ display: flex;
125
+ align-items: center;
126
+ justify-content: center;
125
127
  min-width: govuk-px-to-rem(40px);
126
128
  height: govuk-px-to-rem(40px);
127
129
  padding: govuk-spacing(1);
128
130
  border: $govuk-border-width-form-element solid $govuk-input-border-colour;
129
131
  background-color: govuk-colour("light-grey");
130
-
131
132
  text-align: center;
132
- @include govuk-media-query($until: tablet) {
133
- line-height: 1.6;
134
- }
135
133
  white-space: nowrap;
136
-
137
134
  // Emphasise non-editable status of prefixes and suffixes
138
135
  cursor: default;
139
-
140
136
  flex: 0 0 auto;
141
-
142
137
  // Split prefix/suffix onto separate lines on narrow screens
143
138
  @include govuk-media-query($until: mobile) {
144
139
  display: block;
@@ -17,15 +17,15 @@
17
17
  }
18
18
 
19
19
  .govuk-label--xl {
20
- @include govuk-typography-responsive($size: 48);
20
+ @include govuk-font-size($size: 48);
21
21
  }
22
22
 
23
23
  .govuk-label--l {
24
- @include govuk-typography-responsive($size: 36);
24
+ @include govuk-font-size($size: 36);
25
25
  }
26
26
 
27
27
  .govuk-label--m {
28
- @include govuk-typography-responsive($size: 24);
28
+ @include govuk-font-size($size: 24);
29
29
  }
30
30
 
31
31
  .govuk-label--s {
@@ -26,7 +26,7 @@
26
26
  .govuk-notification-banner__title {
27
27
  // Set the size again because this element is a heading and the user agent
28
28
  // font size overrides the inherited font size
29
- @include govuk-typography-responsive($size: 19);
29
+ @include govuk-font-size($size: 19);
30
30
  @include govuk-typography-weight-bold;
31
31
  margin: 0;
32
32
  padding: 0;
@@ -65,7 +65,7 @@
65
65
  }
66
66
 
67
67
  .govuk-notification-banner__heading {
68
- @include govuk-typography-responsive($size: 24);
68
+ @include govuk-font-size($size: 24);
69
69
  @include govuk-typography-weight-bold;
70
70
 
71
71
  margin: 0 0 govuk-spacing(3) 0;
@@ -12,7 +12,7 @@
12
12
  text-align: center;
13
13
 
14
14
  @include govuk-media-query($until: tablet) {
15
- padding: govuk-spacing(3) - $govuk-border-width;
15
+ padding: govuk-spacing(if($govuk-new-typography-scale, 4, 3)) - $govuk-border-width;
16
16
 
17
17
  // This is an if-all-else-fails attempt to stop long words from overflowing the container
18
18
  // on very narrow viewports by forcing them to break and wrap instead. This
@@ -40,7 +40,7 @@
40
40
  }
41
41
 
42
42
  .govuk-panel__title {
43
- @include govuk-typography-responsive($size: 48);
43
+ @include govuk-font-size($size: 48);
44
44
  @include govuk-typography-weight-bold;
45
45
  margin-top: 0;
46
46
  margin-bottom: govuk-spacing(6);
@@ -17,8 +17,14 @@
17
17
  }
18
18
 
19
19
  .govuk-phase-banner__content__tag {
20
- @include govuk-typography-responsive($size: 16);
21
- margin-right: govuk-spacing(2);
20
+ @include govuk-font-size($size: 16);
21
+ margin-right: govuk-spacing(if($govuk-new-typography-scale, 3, 2));
22
+
23
+ @if $govuk-new-typography-scale {
24
+ @include govuk-media-query($from: tablet) {
25
+ margin-right: govuk-spacing(2);
26
+ }
27
+ }
22
28
 
23
29
  // When forced colour mode is active, for example to provide high contrast,
24
30
  // the background colour of the tag is the same as the rest of the page. To ensure
@@ -4,8 +4,9 @@
4
4
  @import "../label/index";
5
5
 
6
6
  @include govuk-exports("govuk/component/radios") {
7
- $govuk-touch-target-size: 44px;
7
+ $govuk-touch-target-gutter: 4px;
8
8
  $govuk-radios-size: 40px;
9
+ $govuk-touch-target-size: ($govuk-radios-size + $govuk-touch-target-gutter);
9
10
  $govuk-small-radios-size: 24px;
10
11
  $govuk-radios-label-padding-left-right: govuk-spacing(3);
11
12
  // When the default focus width is used on a curved edge it looks visually smaller.
@@ -13,15 +14,10 @@
13
14
  $govuk-radios-focus-width: $govuk-focus-width + 1px;
14
15
 
15
16
  .govuk-radios__item {
16
- display: block;
17
+ display: flex;
18
+ flex-wrap: wrap;
17
19
  position: relative;
18
-
19
- min-height: $govuk-radios-size;
20
-
21
20
  margin-bottom: govuk-spacing(2);
22
- padding-left: $govuk-radios-size;
23
-
24
- clear: left;
25
21
  }
26
22
 
27
23
  .govuk-radios__item:last-child,
@@ -30,27 +26,26 @@
30
26
  }
31
27
 
32
28
  .govuk-radios__input {
33
- $input-offset: ($govuk-touch-target-size - $govuk-radios-size) / 2;
34
-
35
- position: absolute;
36
-
29
+ // Allow the input to sit above the label, enabling its proper detection
30
+ // when exploring by touch or using automation tools like Selenium
37
31
  z-index: 1;
38
- top: $input-offset * -1;
39
- left: $input-offset * -1;
40
-
41
32
  width: $govuk-touch-target-size;
42
33
  height: $govuk-touch-target-size;
43
34
  margin: 0;
44
-
45
35
  opacity: 0;
46
-
47
36
  cursor: pointer;
48
37
  }
49
38
 
50
39
  .govuk-radios__label {
51
- display: inline-block;
40
+ align-self: center;
41
+
42
+ // Ensure that the width of the label is never more than the width of the
43
+ // container minus the input width minus the padding on either side of
44
+ // the label. This prevents the label from going onto the next line due to
45
+ // __item using flex-wrap because we want hints on a separate line
46
+ max-width: calc(100% - #{($govuk-radios-label-padding-left-right + $govuk-touch-target-size + govuk-spacing(3))});
52
47
  margin-bottom: 0;
53
- padding: 8px $govuk-radios-label-padding-left-right govuk-spacing(1);
48
+ padding: (govuk-spacing(1) + $govuk-border-width-form-element) govuk-spacing(3);
54
49
  cursor: pointer;
55
50
  // remove 300ms pause on mobile
56
51
  touch-action: manipulation;
@@ -61,12 +56,10 @@
61
56
  content: "";
62
57
  box-sizing: border-box;
63
58
  position: absolute;
64
- top: 0;
65
- left: 0;
66
-
59
+ top: ($govuk-touch-target-gutter / 2);
60
+ left: ($govuk-touch-target-gutter / 2);
67
61
  width: $govuk-radios-size;
68
62
  height: $govuk-radios-size;
69
-
70
63
  border: $govuk-border-width-form-element solid currentcolor;
71
64
  border-radius: 50%;
72
65
  background: transparent;
@@ -77,16 +70,19 @@
77
70
  // We create the 'button' entirely out of 'border' so that they remain
78
71
  // 'filled' even when colours are overridden in the browser.
79
72
  .govuk-radios__label::after {
80
- content: "";
73
+ $radio-button-size: govuk-spacing(2);
81
74
 
75
+ content: "";
82
76
  position: absolute;
83
- top: govuk-spacing(2);
84
- left: govuk-spacing(2);
85
77
 
78
+ // Positioned by getting half the touch target, so we have the centre of the
79
+ // input, and then moving back by the button's border width, thus positioning
80
+ // the centre of the button in the centre of the input.
81
+ top: (($govuk-touch-target-size / 2) - $radio-button-size);
82
+ left: (($govuk-touch-target-size / 2) - $radio-button-size);
86
83
  width: 0;
87
84
  height: 0;
88
-
89
- border: govuk-spacing(2) solid currentcolor;
85
+ border: $radio-button-size solid currentcolor;
90
86
  border-radius: 50%;
91
87
  opacity: 0;
92
88
  background: currentcolor;
@@ -94,8 +90,17 @@
94
90
 
95
91
  .govuk-radios__hint {
96
92
  display: block;
93
+ width: 100%;
94
+ margin-top: govuk-spacing(-1);
97
95
  padding-right: $govuk-radios-label-padding-left-right;
98
- padding-left: $govuk-radios-label-padding-left-right;
96
+ padding-left: ($govuk-radios-label-padding-left-right + $govuk-touch-target-size);
97
+ }
98
+
99
+ // This is to bypass govuk-hint's specificity on hints following labels having
100
+ // a margin bottom of 10px (govuk-spacing(2)). Because radios are flexbox,
101
+ // the margin doesn't collapse so we have to do this manually.
102
+ .govuk-label:not(.govuk-label--m):not(.govuk-label--l):not(.govuk-label--xl) + .govuk-radios__hint {
103
+ margin-bottom: 0;
99
104
  }
100
105
 
101
106
  // Focused state
@@ -140,12 +145,12 @@
140
145
 
141
146
  .govuk-radios--inline {
142
147
  @include govuk-media-query($from: tablet) {
143
- @include govuk-clearfix;
148
+ display: flex;
149
+ flex-wrap: wrap;
150
+ align-items: flex-start;
144
151
 
145
152
  .govuk-radios__item {
146
153
  margin-right: govuk-spacing(4);
147
- float: left;
148
- clear: none;
149
154
  }
150
155
  }
151
156
  }
@@ -198,14 +203,9 @@
198
203
 
199
204
  .govuk-radios--small {
200
205
  $input-offset: ($govuk-touch-target-size - $govuk-small-radios-size) / 2;
201
- $label-offset: $govuk-touch-target-size - $input-offset;
202
206
 
203
207
  .govuk-radios__item {
204
- @include govuk-clearfix;
205
- min-height: 0;
206
208
  margin-bottom: 0;
207
- padding-left: $label-offset;
208
- float: left;
209
209
  }
210
210
 
211
211
  // Shift the touch target into the left margin so that the visible edge of
@@ -218,30 +218,23 @@
218
218
  // ▲┆└─ Radio pseudo element, aligned with margin
219
219
  // └─── Touch target (invisible input), shifted into the margin
220
220
  .govuk-radios__input {
221
- left: $input-offset * -1;
221
+ margin-left: $input-offset * -1;
222
222
  }
223
223
 
224
- // Adjust the size and position of the label.
225
- //
226
- // Unlike larger radios, we also have to float the label in order to
227
- // 'shrink' it, preventing the hover state from kicking in across the full
228
- // width of the parent element.
229
224
  .govuk-radios__label {
230
- margin-top: -2px;
231
- padding: 13px govuk-spacing(3) 13px 1px;
232
- float: left;
233
-
234
- @include govuk-media-query($from: tablet) {
235
- padding: 11px govuk-spacing(3) 10px 1px;
236
- }
225
+ // Create a tiny space between the small radio hover state so that it
226
+ // doesn't clash with the label
227
+ padding-left: 1px;
237
228
  }
238
229
 
239
230
  // ( ) Radio ring
240
231
  //
241
232
  // Reduce the size of the control [1], vertically centering it within the
242
233
  // touch target [2]
234
+ // Left here is 0 because we've shifted the input into the left margin
243
235
  .govuk-radios__label::before {
244
- top: $input-offset - $govuk-border-width-form-element; // 2
236
+ top: $input-offset; // 2
237
+ left: 0;
245
238
  width: $govuk-small-radios-size; // 1
246
239
  height: $govuk-small-radios-size; // 1
247
240
  }
@@ -250,9 +243,12 @@
250
243
  //
251
244
  // Reduce the size of the 'button' and center it within the ring
252
245
  .govuk-radios__label::after {
253
- top: 15px;
254
- left: 7px;
255
- border-width: 5px;
246
+ $radio-button-size: govuk-spacing(1);
247
+
248
+ // The same calculation as normal radio buttons but reduce the border width
249
+ top: (($govuk-touch-target-size / 2) - $radio-button-size);
250
+ left: ((($govuk-touch-target-size / 2) - $radio-button-size) - $input-offset);
251
+ border-width: $radio-button-size;
256
252
  }
257
253
 
258
254
  // Fix position of hint with small radios
@@ -264,17 +260,14 @@
264
260
  // (If you do use them, they won't look completely broken... but seriously,
265
261
  // don't use them)
266
262
  .govuk-radios__hint {
267
- padding: 0;
268
- clear: both;
269
- pointer-events: none;
263
+ padding-left: ($govuk-small-radios-size + $input-offset);
270
264
  }
271
265
 
272
266
  // Align conditional reveals with small radios
273
267
  .govuk-radios__conditional {
274
268
  $margin-left: ($govuk-small-radios-size / 2) - ($conditional-border-width / 2);
275
269
  margin-left: $margin-left;
276
- padding-left: $label-offset - ($margin-left + $conditional-border-width);
277
- clear: both;
270
+ padding-left: ($govuk-touch-target-size - $input-offset) - ($margin-left + $conditional-border-width);
278
271
  }
279
272
 
280
273
  .govuk-radios__divider {
@@ -4,7 +4,7 @@
4
4
  @include govuk-typography-common;
5
5
  @include govuk-link-decoration;
6
6
  @include govuk-link-style-text;
7
- @include govuk-typography-responsive($size: 16);
7
+ @include govuk-font-size($size: 16);
8
8
 
9
9
  display: block;
10
10
  padding: govuk-spacing(2) govuk-spacing(3);
@@ -202,7 +202,7 @@
202
202
  }
203
203
 
204
204
  .govuk-summary-card__actions {
205
- @include govuk-typography-responsive($size: 19);
205
+ @include govuk-font-size($size: 19);
206
206
  @include govuk-typography-weight-bold;
207
207
  display: flex;
208
208
  flex-wrap: wrap;
@@ -9,6 +9,16 @@
9
9
  border-collapse: collapse;
10
10
  }
11
11
 
12
+ @if $govuk-new-typography-scale {
13
+ // Modifier for tables with a lot of data. Tables with lots of data benefit
14
+ // from a smaller font size on small screens.
15
+ .govuk-table--small-text-until-tablet {
16
+ @include govuk-media-query($until: tablet) {
17
+ @include govuk-font-size($size: 16);
18
+ }
19
+ }
20
+ }
21
+
12
22
  .govuk-table__header {
13
23
  @include govuk-typography-weight-bold;
14
24
  }
@@ -22,7 +32,7 @@
22
32
  }
23
33
 
24
34
  .govuk-table__cell--numeric {
25
- @include govuk-font($size: false, $tabular: true);
35
+ @include govuk-font-tabular-numbers;
26
36
  }
27
37
 
28
38
  .govuk-table__header--numeric,
@@ -50,15 +60,15 @@
50
60
  }
51
61
 
52
62
  .govuk-table__caption--xl {
53
- @include govuk-typography-responsive($size: 48);
63
+ @include govuk-font-size($size: 48);
54
64
  }
55
65
 
56
66
  .govuk-table__caption--l {
57
- @include govuk-typography-responsive($size: 36);
67
+ @include govuk-font-size($size: 36);
58
68
  }
59
69
 
60
70
  .govuk-table__caption--m {
61
- @include govuk-typography-responsive($size: 24);
71
+ @include govuk-font-size($size: 24);
62
72
  }
63
73
  }
64
74
 
@@ -8,7 +8,7 @@
8
8
  .govuk-tabs__title {
9
9
  // Set the size and weight again because this element is a heading and the
10
10
  // user agent font size overrides the inherited font size
11
- @include govuk-typography-responsive($size: 19);
11
+ @include govuk-font-size($size: 19);
12
12
  @include govuk-typography-weight-regular;
13
13
  @include govuk-text-colour;
14
14
  margin-bottom: govuk-spacing(2);
@@ -1,4 +1,4 @@
1
- @import "govuk-frontend-version";
1
+ @import "govuk-frontend-properties";
2
2
  @import "links";
3
3
  @import "lists";
4
4
  @import "typography";
@@ -0,0 +1,12 @@
1
+ :root {
2
+ // This variable is automatically overwritten during builds and releases.
3
+ // It doesn't need to be updated manually.
4
+ --govuk-frontend-version: "5.2.0";
5
+
6
+ // CSS custom property for each breakpoint
7
+ @each $name, $value in $govuk-breakpoints {
8
+ --govuk-frontend-breakpoint-#{$name}: #{govuk-px-to-rem($value)};
9
+ }
10
+ }
11
+
12
+ /*# sourceMappingURL=_govuk-frontend-properties.scss.map */
@@ -128,14 +128,16 @@
128
128
  @extend %govuk-body-s;
129
129
  }
130
130
 
131
+ // @deprecated
131
132
  %govuk-body-xs {
132
133
  @include govuk-text-colour;
133
- @include govuk-font($size: 14);
134
+ @include govuk-font($size: _14);
134
135
 
135
136
  margin-top: 0;
136
137
  @include govuk-responsive-margin(4, "bottom");
137
138
  }
138
139
 
140
+ // @deprecated
139
141
  .govuk-body-xs {
140
142
  @extend %govuk-body-xs;
141
143
  }