govuk_publishing_components 24.9.0 → 24.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +7 -0
  3. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +36 -6
  4. data/app/assets/javascripts/govuk_publishing_components/components/show-password.js +12 -0
  5. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/magna-charta.js +1 -1
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +34 -34
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +0 -2
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +0 -8
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +0 -37
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_highlight-boxes.scss +1 -2
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +1 -11
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +4 -2
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +0 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +0 -1
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +0 -1
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +4 -4
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +0 -1
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +0 -4
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +20 -20
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +0 -1
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +0 -4
  22. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +16 -2
  23. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +0 -1
  24. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_px-to-em.scss +2 -0
  25. data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +15 -0
  26. data/app/views/govuk_publishing_components/component_guide/index.html.erb +2 -2
  27. data/app/views/govuk_publishing_components/component_guide/show.html.erb +1 -1
  28. data/app/views/govuk_publishing_components/components/_accordion.html.erb +25 -0
  29. data/app/views/govuk_publishing_components/components/_highlight_boxes.html.erb +1 -1
  30. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +2 -2
  31. data/app/views/govuk_publishing_components/components/_notice.html.erb +1 -1
  32. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +2 -2
  33. data/app/views/govuk_publishing_components/components/_print_link.html.erb +2 -2
  34. data/app/views/govuk_publishing_components/components/_share_links.html.erb +1 -1
  35. data/app/views/govuk_publishing_components/components/_show_password.html.erb +2 -0
  36. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +4 -4
  37. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +3 -3
  38. data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +1 -1
  39. data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb +9 -27
  40. data/app/views/govuk_publishing_components/components/docs/accordion.yml +73 -73
  41. data/app/views/govuk_publishing_components/components/docs/show_password.yml +10 -0
  42. data/app/views/govuk_publishing_components/components/docs/success_alert.yml +5 -0
  43. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +1 -1
  44. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +2 -1
  45. data/config/locales/cy.yml +0 -5
  46. data/config/locales/en.yml +10 -6
  47. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +0 -4
  48. data/lib/govuk_publishing_components/version.rb +1 -1
  49. metadata +22 -3
  50. data/app/assets/javascripts/component_guide/visual-regression.js +0 -71
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d79929a27b4001f7a46caed7050ee5c3d04eda5137c21e8a28bef4cd12b8ce54
4
- data.tar.gz: 957d3905b7989a6eda0c9bb54e262b197fee924df5cd7edc56d983018f650577
3
+ metadata.gz: da7ab3cbd89ef8a20000b0a9d6ffad43c92532e787106e6821cccd7c8d9f90b2
4
+ data.tar.gz: 1362df93036bb10322e881d5136a0303be0d96a745541afc122ad79949d36820
5
5
  SHA512:
6
- metadata.gz: b3f25112299f7b0c198c884293a3932176bb299bc0d7477434f1124facb36b03fe365ecfca09a249844e5701c881e64a359e3be2fb71995daf74bfd0f56ee38c
7
- data.tar.gz: cbacbec44192f78e41925a071ef9e0b854e0690b4d999d8515e7828071cd8a620044ee3182ac7eb3e50069f3e077ea4d8cd560bce8c4d89da9d0b41b7104c3b2
6
+ metadata.gz: a50d991265471b7c0025b59f50c2a51f4599c6fc5e629ad8c0f64158af0570812224938e08ad36193587b46c03a8bf37200def0167d47537868d1a9b31839305
7
+ data.tar.gz: a3104340ed6d431791b48ebf1fc9c8b2d89563c608cbe050082efdafc68a949d13bf5f198be9c39b7ad7b1e1d2b18de1556a9f21c9a9c89e65c1b52db02942ba
@@ -433,6 +433,13 @@
433
433
  ['Percent', 60],
434
434
  ['Percent', 80],
435
435
  ['Percent', 100]
436
+ ],
437
+ '/get-coronavirus-test': [
438
+ ['Percent', 20],
439
+ ['Percent', 40],
440
+ ['Percent', 60],
441
+ ['Percent', 80],
442
+ ['Percent', 100]
436
443
  ]
437
444
  }
438
445
 
@@ -31,7 +31,16 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
31
31
  this.upChevonIconClass = 'gem-c-accordion-nav__chevron'
32
32
  this.downChevonIconClass = 'gem-c-accordion-nav__chevron--down'
33
33
 
34
- // Indicate that js has worked
34
+ // Translated component content and language attribute pulled from data attributes
35
+ this.$module.actions = {}
36
+ this.$module.actions.locale = this.$module.getAttribute('data-locale')
37
+ this.$module.actions.showText = this.$module.getAttribute('data-show-text')
38
+ this.$module.actions.hideText = this.$module.getAttribute('data-hide-text')
39
+ this.$module.actions.showAllText = this.$module.getAttribute('data-show-all-text')
40
+ this.$module.actions.hideAllText = this.$module.getAttribute('data-hide-all-text')
41
+ this.$module.actions.thisSectionVisuallyHidden = this.$module.getAttribute('data-this-section-visually-hidden')
42
+
43
+ // Indicate that JavaScript has worked
35
44
  this.$module.classList.add('gem-c-accordion--active')
36
45
 
37
46
  this.initControls()
@@ -117,7 +126,11 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
117
126
  // Build additional copy for assistive technology
118
127
  var srAdditionalCopy = document.createElement('span')
119
128
  srAdditionalCopy.classList.add('govuk-visually-hidden')
120
- srAdditionalCopy.innerHTML = ' this section'
129
+ srAdditionalCopy.innerHTML = this.$module.actions.thisSectionVisuallyHidden
130
+
131
+ if (this.$module.actions.locale) {
132
+ srAdditionalCopy.lang = this.filterLocale('this_section_visually_hidden')
133
+ }
121
134
 
122
135
  // Build additional wrapper for toggle text, place icon after wrapped text.
123
136
  var wrapperShowHideIcon = document.createElement('span')
@@ -178,12 +191,16 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
178
191
  var icon = section.querySelector('.' + this.upChevonIconClass)
179
192
  var showHideText = section.querySelector('.' + this.sectionShowHideTextClass)
180
193
  var button = section.querySelector('.' + this.sectionButtonClass)
181
- var newButtonText = expanded ? 'Hide' : 'Show'
194
+ var newButtonText = expanded ? this.$module.actions.hideText : this.$module.actions.showText
182
195
 
183
196
  showHideText.innerHTML = newButtonText
184
197
  button.setAttribute('aria-expanded', expanded)
185
198
  button.classList.add(this.toggleLinkClass)
186
199
 
200
+ if (this.$module.actions.locale) {
201
+ showHideText.lang = this.filterLocale(expanded ? 'hide_text' : 'show_text')
202
+ }
203
+
187
204
  // Swap icon, change class
188
205
  if (expanded) {
189
206
  section.classList.add(this.sectionExpandedClass)
@@ -218,10 +235,15 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
218
235
  GemAccordion.prototype.updateOpenAllButton = function (expanded) {
219
236
  var icon = this.openAllButton.querySelector('.' + this.upChevonIconClass)
220
237
  var openAllCopy = this.openAllButton.querySelector('.' + this.openAllTextClass)
221
- var newButtonText = expanded ? 'Hide all sections' : 'Show all sections'
238
+ var newButtonText = expanded ? this.$module.actions.hideAllText : this.$module.actions.showAllText
239
+
222
240
  this.openAllButton.setAttribute('aria-expanded', expanded)
223
241
  openAllCopy.innerHTML = newButtonText
224
242
 
243
+ if (this.$module.actions.locale) {
244
+ openAllCopy.lang = this.filterLocale(expanded ? 'hide_all_text' : 'show_all_text')
245
+ }
246
+
225
247
  // Swap icon, toggle class
226
248
  if (expanded) {
227
249
  icon.classList.remove(this.downChevonIconClass)
@@ -304,8 +326,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
304
326
  // Adding an event listener to all anchor link a tags in an accordion is risky but we circumvent this risk partially by only being a layer of accordion behaviour instead of any sort of change to link behaviour
305
327
  GemAccordion.prototype.addEventListenersForAnchors = function () {
306
328
  var links = this.$module.querySelectorAll('.' + this.sectionInnerContent + ' a[href*="#"]')
307
-
308
- links.forEach(function (link) {
329
+ nodeListForEach(links, function (link) {
309
330
  if (link.pathname === window.location.pathname) {
310
331
  link.addEventListener('click', this.openForAnchor.bind(this, link.hash.split('#')[1]))
311
332
  }
@@ -329,5 +350,14 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
329
350
  return target
330
351
  }
331
352
 
353
+ GemAccordion.prototype.filterLocale = function (key) {
354
+ if (this.$module.actions.locale && this.$module.actions.locale.indexOf('{') !== -1) {
355
+ var locales = JSON.parse(this.$module.actions.locale)
356
+ return locales[key]
357
+ } else if (this.$module.actions.locale) {
358
+ return this.$module.actions.locale
359
+ }
360
+ }
361
+
332
362
  Modules.GemAccordion = GemAccordion
333
363
  })(window.GOVUK.Modules)
@@ -41,6 +41,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
41
41
  this.wrapper.insertBefore(this.statusText, this.showHide.nextSibling)
42
42
 
43
43
  this.showHide.addEventListener('click', this.$module.togglePassword)
44
+ this.moveDataAttributesToButton()
44
45
 
45
46
  this.parentForm = this.input.form
46
47
  var disableFormSubmitCheck = this.$module.getAttribute('data-disable-form-submit-check')
@@ -65,5 +66,16 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
65
66
  this.input.setAttribute('type', 'password')
66
67
  }
67
68
 
69
+ ShowPassword.prototype.moveDataAttributesToButton = function () {
70
+ var attrs = this.input.attributes
71
+ for (var i = attrs.length; i >= 0; i--) {
72
+ var attr = attrs[i]
73
+ if (attr && /^data-button/.test(attr.name)) {
74
+ this.showHide.setAttribute(attr.name.replace('-button', ''), attr.value)
75
+ this.input.removeAttribute(attr.name)
76
+ }
77
+ }
78
+ }
79
+
68
80
  Modules.ShowPassword = ShowPassword
69
81
  })(window.GOVUK.Modules)
@@ -188,7 +188,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
188
188
  toggleStatus.classList.add('govuk-visually-hidden', 'mc-toggle-status')
189
189
  toggleStatus.setAttribute('role', 'alert')
190
190
 
191
- link.classList.add('mc-toggle-button')
191
+ link.classList.add('govuk-body-s', 'mc-toggle-button')
192
192
  link.appendChild(toggleText)
193
193
  link.appendChild(toggleStatus)
194
194
 
@@ -68,17 +68,17 @@ $gem-c-accordion-bottom-border-width: 1px;
68
68
  display: inline-block;
69
69
  box-sizing: border-box;
70
70
  position: relative;
71
- width: em(20, 14);
72
- height: em(20, 14);
73
- margin-left: em(5, 14);
74
- border: em(1, 14) solid;
75
- border-radius: em(100, 14);
71
+ width: govuk-em(20, 14);
72
+ height: govuk-em(20, 14);
73
+ margin-left: govuk-em(5, 14);
74
+ border: govuk-em(1, 14) solid;
75
+ border-radius: govuk-em(100, 14);
76
76
  // Main icon size across views, yet keep responsive for zoom
77
77
  @include govuk-media-query($from: tablet) {
78
- width: em(20, 16);
79
- height: em(20, 16);
80
- margin-left: em(5, 16);
81
- border: em(1, 16) solid;
78
+ width: govuk-em(20, 16);
79
+ height: govuk-em(20, 16);
80
+ margin-left: govuk-em(5, 16);
81
+ border: govuk-em(1, 16) solid;
82
82
  }
83
83
 
84
84
  &:after {
@@ -87,20 +87,20 @@ $gem-c-accordion-bottom-border-width: 1px;
87
87
  box-sizing: border-box;
88
88
  position: absolute;
89
89
  overflow: visible;
90
- width: em(6, 14);
91
- height: em(6, 14);
92
- border-top: em(2, 14) solid;
93
- border-right: em(2, 14) solid;
90
+ width: govuk-em(6, 14);
91
+ height: govuk-em(6, 14);
92
+ border-top: govuk-em(2, 14) solid;
93
+ border-right: govuk-em(2, 14) solid;
94
94
  transform: rotate(-45deg);
95
- left: em(6, 14);
96
- bottom: em(5, 14);
95
+ left: govuk-em(6, 14);
96
+ bottom: govuk-em(5, 14);
97
97
  @include govuk-media-query($from: tablet) {
98
- width: em(6, 16);
99
- height: em(6, 16);
100
- border-top: em(2, 16) solid;
101
- border-right: em(2, 16) solid;
102
- left: em(6, 16);
103
- bottom: em(5, 16);
98
+ width: govuk-em(6, 16);
99
+ height: govuk-em(6, 16);
100
+ border-top: govuk-em(2, 16) solid;
101
+ border-right: govuk-em(2, 16) solid;
102
+ left: govuk-em(6, 16);
103
+ bottom: govuk-em(5, 16);
104
104
  }
105
105
  }
106
106
  }
@@ -227,12 +227,12 @@ $gem-c-accordion-bottom-border-width: 1px;
227
227
 
228
228
  // Setting width of the text, so the icon doesn't shift (left / right) when toggled
229
229
  .gem-c-accordion__toggle-text {
230
- min-width: em(40, 16);
230
+ min-width: govuk-em(40, 16);
231
231
  display: inline-block;
232
232
  }
233
233
 
234
234
  .gem-c-accordion__open-all-text {
235
- min-width: em(120, 16);
235
+ min-width: govuk-em(120, 16);
236
236
  display: inline-block;
237
237
  text-align: left;
238
238
  }
@@ -277,20 +277,20 @@ $gem-c-accordion-bottom-border-width: 1px;
277
277
 
278
278
  // Reduce Chevron size
279
279
  .gem-c-accordion-nav__chevron {
280
- width: em(20, 14);
281
- height: em(20, 14);
282
- margin-left: em(5, 14);
283
- border: em(1, 14) solid;
284
- border-radius: em(100, 14);
280
+ width: govuk-em(20, 14);
281
+ height: govuk-em(20, 14);
282
+ margin-left: govuk-em(5, 14);
283
+ border: govuk-em(1, 14) solid;
284
+ border-radius: govuk-em(100, 14);
285
285
  transform: scale(.875);
286
286
 
287
287
  &:after {
288
- width: em(6, 14);
289
- height: em(6, 14);
290
- border-top: em(2, 14) solid;
291
- border-right: em(2, 14) solid;
292
- left: em(6, 14);
293
- bottom: em(5, 14);
288
+ width: govuk-em(6, 14);
289
+ height: govuk-em(6, 14);
290
+ border-top: govuk-em(2, 14) solid;
291
+ border-right: govuk-em(2, 14) solid;
292
+ left: govuk-em(6, 14);
293
+ bottom: govuk-em(5, 14);
294
294
  }
295
295
  }
296
296
 
@@ -1,5 +1,3 @@
1
- $gem-hover-dark-background: #dddcdb;
2
-
3
1
  .gem-c-action-link {
4
2
  display: table;
5
3
 
@@ -1,13 +1,5 @@
1
1
  @import "govuk/components/button/button";
2
2
 
3
- $gem-secondary-button-colour: #00823b;
4
- $gem-secondary-button-hover-colour: darken($gem-secondary-button-colour, 5%);
5
- $gem-secondary-button-background-colour: govuk-colour("white");
6
- $gem-secondary-button-hover-background-colour: govuk-colour("light-grey", $legacy: "grey-4");
7
-
8
- $gem-quiet-button-colour: govuk-colour("dark-grey", $legacy: "grey-1");
9
- $gem-quiet-button-hover-colour: darken($gem-quiet-button-colour, 5%);
10
-
11
3
  // Because govuk-frontend adds a responsive bottom margin by default for each component
12
4
  // we reset it to zero so we can set it separately using `gem-c-button--bottom-margin`
13
5
  // If we decide to use responsive margins consistently across components we can remove this
@@ -1,12 +1,10 @@
1
1
  $transition-campaign-red: #ff003b;
2
- $transition-campaign-dark-blue: #1e1348;
3
2
 
4
3
  .gem-c-contextual-sidebar__brexit-related-links {
5
4
  border-top: 2px solid $govuk-brand-colour;
6
5
  }
7
6
 
8
7
  .gem-c-contextual-sidebar__brexit-heading {
9
- @extend %govuk-heading-s;
10
8
  margin-top: govuk-spacing(3);
11
9
  margin-bottom: govuk-spacing(2);
12
10
  }
@@ -24,45 +22,10 @@ $transition-campaign-dark-blue: #1e1348;
24
22
  }
25
23
 
26
24
  .gem-c-contextual-sidebar__brexit-text {
27
- @extend %govuk-link;
28
25
  @include govuk-font(16);
29
-
30
- margin-top: 0;
31
26
  margin-bottom: govuk-spacing(1);
32
- text-decoration: underline;
33
-
34
27
  @include govuk-media-query($from: tablet) {
35
28
  margin-bottom: govuk-spacing(2);
36
29
  }
37
30
  }
38
31
  }
39
-
40
- .gem-c-contextual-sidebar__brexit-cta:focus {
41
- .gem-c-contextual-sidebar__brexit-text {
42
- text-decoration: none;
43
- }
44
- }
45
-
46
- .gem-c-contextual-sidebar__take-action-traffic-lights {
47
- text-align: left;
48
- margin-bottom: govuk-spacing(2);
49
- }
50
-
51
- .gem-c-contextual-sidebar__take-action-traffic-lights > li {
52
- white-space: nowrap;
53
- display: inline;
54
- margin-right: 7px;
55
- margin-bottom: govuk-spacing(1);
56
- }
57
-
58
- .gem-c-contextual-sidebar__take-action-traffic-lists-icon {
59
- vertical-align: middle;
60
- margin-top: -2px;
61
- width: 22px;
62
- margin-right: 2px;
63
- }
64
-
65
- .gem-c-contextual-sidebar__take-action-traffic-lists-text {
66
- @include govuk-font($size: 19, $weight: bold, $line-height: 2);
67
- vertical-align: middle;
68
- }
@@ -50,11 +50,10 @@
50
50
  }
51
51
 
52
52
  .gem-c-highlight-boxes__title {
53
- @extend %govuk-link;
54
53
  @include govuk-font(19, $weight: bold);
55
54
  display: block;
56
55
  text-decoration: underline;
57
- margin-bottom: 5px;
56
+ margin-bottom: govuk-spacing(1);
58
57
  }
59
58
 
60
59
  .gem-c-highlight-boxes--inverse .gem-c-highlight-boxes__title {
@@ -33,7 +33,7 @@
33
33
  .gem-c-layout-header--search-left {
34
34
  .gem-c-header__menu-button.govuk-header__menu-button {
35
35
  margin-top: - govuk-spacing(7);
36
- left: 0;
36
+ left: govuk-spacing(3);
37
37
  }
38
38
 
39
39
  .gem-c-header__nav-wrapper {
@@ -78,16 +78,6 @@
78
78
  }
79
79
  }
80
80
 
81
- @include govuk-compatibility(govuk_template) {
82
- .gem-c-layout-header__search.govuk-grid-column-one-third-from-desktop,
83
- .gem-c-layout-header__logo.govuk-grid-column-one-third-from-desktop,
84
- .gem-c-layout-header__search.govuk-grid-column-one-third,
85
- .gem-c-layout-header__logo.govuk-grid-column-two-thirds {
86
- padding-right: 0;
87
- padding-left: 0;
88
- }
89
- }
90
-
91
81
  .gem-c-layout-header__logo,
92
82
  .gem-c-layout-header__search {
93
83
  @include govuk-media-query($until: "tablet") {
@@ -6,7 +6,7 @@
6
6
  clear: both;
7
7
  border: $govuk-border-width solid govuk-colour("blue");
8
8
 
9
- .govuk-govspeak, {
9
+ .govuk-govspeak {
10
10
  p:last-child {
11
11
  margin-bottom: 0;
12
12
  }
@@ -27,7 +27,9 @@
27
27
  }
28
28
 
29
29
  a {
30
- @extend %govuk-link;
30
+ @include govuk-link-common;
31
+ @include govuk-link-style-default;
32
+ @include govuk-link-print-friendly;
31
33
  }
32
34
  }
33
35
 
@@ -18,7 +18,6 @@
18
18
  }
19
19
 
20
20
  .gem-c-pagination__link {
21
- @extend %govuk-link;
22
21
  display: block;
23
22
  text-decoration: none;
24
23
  padding-bottom: govuk-spacing(4);
@@ -41,7 +41,6 @@ $gem-c-print-link-background-height: 18px;
41
41
  }
42
42
 
43
43
  .gem-c-print-link__button {
44
- @extend %govuk-body-s;
45
44
  border: 1px solid $govuk-border-colour;
46
45
  color: $govuk-link-colour;
47
46
  cursor: pointer;
@@ -66,7 +66,6 @@
66
66
  }
67
67
 
68
68
  .gem-c-related-navigation__section-link {
69
- @extend %govuk-link;
70
69
  font-weight: bold;
71
70
 
72
71
  @include govuk-template-link-focus-override;
@@ -53,8 +53,8 @@ $large-input-size: 50px;
53
53
  @include govuk-font($size: 19, $line-height: (28 / 19));
54
54
  margin: 0;
55
55
  width: 100%;
56
- height: em(40, 16);
57
- padding: em(6, 16);
56
+ height: govuk-em(40, 16);
57
+ padding: govuk-em(6, 16);
58
58
  border: $govuk-border-width-form-element solid $govuk-input-border-colour;
59
59
  background: govuk-colour("white");
60
60
  border-radius: 0; //otherwise iphones apply an automatic border radius
@@ -63,8 +63,8 @@ $large-input-size: 50px;
63
63
  -moz-appearance: none;
64
64
  appearance: none;
65
65
  @include govuk-media-query($from: tablet) {
66
- height: em(40, 19);
67
- padding: em(6, 19);
66
+ height: govuk-em(40, 19);
67
+ padding: govuk-em(6, 19);
68
68
  }
69
69
 
70
70
  // the .focus class is added by JS and ensures that the input remains above the label once clicked/filled in