govuk_publishing_components 37.2.0 → 37.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 638e22aafc5fdc6f80b61babb5bcddf89bc41213e5e49afaf95c23a8ca62d5ea
4
- data.tar.gz: 3af560c10c9beb1da8db5d930d5bd02b530f5ceeaa65734b5432baf2651a7e9b
3
+ metadata.gz: 1dd71c47ab9d769b9dd6f691ccee6bbb78fad2e7354c9c2a1f78346e2aa9d93d
4
+ data.tar.gz: 63208f337846034a12a847f64047ca660a621caef8ac55038a05633194004542
5
5
  SHA512:
6
- metadata.gz: 3b4d262a5afcc7a3b436b9142daa46e994bbbda7bb5e780a8c98d95df894d9ae6d3a8ae46a62fac7daea39d33006311843d231f786f1b2ba5ebcd47c76a41d3d
7
- data.tar.gz: f7274e4d9d134c750ae933b717b7a6efae8fb126c1c5c290646454ab35b153108d2ccda6971f702abea7e6554f079ce68e395fff789c2ff763d0f8a7df9c350f
6
+ metadata.gz: d216ad96144deb5dbb16a130d5e31546b2bb80dd15db040e92799be492e699ea8ae420eea90b8d41490002b0c089a3a98697715133bb97a7f63e00a9be6109ce
7
+ data.tar.gz: 9f32a50ce72e2512e2ac956f055b3c5abae822987736a6c2a2b672cb8faaca3c22c7eb9f121b04254e299705cee57d686827bb650bd53c98bb35841aea29dbc5
@@ -45,7 +45,7 @@ window.GOVUK.analyticsGa4.analyticsModules = window.GOVUK.analyticsGa4.analytics
45
45
  first_published_at: this.stripTimeFrom(this.getMetaContent('first-published-at')),
46
46
  updated_at: this.stripTimeFrom(this.getMetaContent('updated-at')),
47
47
  public_updated_at: this.stripTimeFrom(this.getMetaContent('public-updated-at')),
48
- publishing_government: this.getMetaContent('publishing-government') || this.getMetaContent('ga4-publishing-government'),
48
+ publishing_government: this.removeHyphensAndDowncase(this.getMetaContent('publishing-government') || this.getMetaContent('ga4-publishing-government')),
49
49
  political_status: this.getMetaContent('political-status') || this.getMetaContent('ga4-political-status'),
50
50
  primary_publishing_organisation: this.getMetaContent('primary-publishing-organisation'),
51
51
  organisations: this.getMetaContent('analytics:organisations'),
@@ -69,6 +69,12 @@ window.GOVUK.analyticsGa4.analyticsModules = window.GOVUK.analyticsGa4.analytics
69
69
  }
70
70
  },
71
71
 
72
+ removeHyphensAndDowncase: function (text) {
73
+ if (text) {
74
+ return text.replace(/-/g, ' ').toLowerCase()
75
+ }
76
+ },
77
+
72
78
  getLocation: function () {
73
79
  return this.PIIRemover.stripPIIWithOverride(this.stripGaParam(document.location.href), true, true)
74
80
  },
@@ -165,7 +165,7 @@ $gem-guide-border-width: 1px;
165
165
  h3,
166
166
  h4 {
167
167
  margin-top: 0;
168
- margin-bottom: calc($govuk-gutter / 2);
168
+ margin-bottom: $govuk-gutter / 2;
169
169
  }
170
170
 
171
171
  h3 a {
@@ -40,7 +40,7 @@
40
40
  list-style-type: none;
41
41
 
42
42
  @include govuk-media-query($from: tablet) {
43
- padding-top: calc(govuk-spacing(6) / 4);
43
+ padding-top: govuk-spacing(6) / 4;
44
44
  }
45
45
  }
46
46
 
@@ -186,7 +186,7 @@
186
186
  @include govuk-font($size: false);
187
187
  font-size: 16px;
188
188
  font-size: govuk-px-to-rem(16px);
189
- margin: 0 0 calc(govuk-spacing(3) / 2);
189
+ margin: 0 0 (govuk-spacing(3) / 2);
190
190
  color: govuk-colour("dark-grey", $legacy: "grey-1");
191
191
 
192
192
  @include govuk-media-query($from: tablet) {
@@ -196,7 +196,7 @@
196
196
 
197
197
  .gem-c-image-card__description {
198
198
  @include govuk-font($size: 19);
199
- padding-top: calc(govuk-spacing(3) / 2);
199
+ padding-top: (govuk-spacing(3) / 2);
200
200
  word-wrap: break-word;
201
201
  }
202
202
 
@@ -204,7 +204,7 @@
204
204
  @include govuk-font($size: 19);
205
205
  position: relative;
206
206
  z-index: 2;
207
- padding: calc(govuk-spacing(3) / 2) 0 0 0;
207
+ padding: (govuk-spacing(3) / 2) 0 0 0;
208
208
  margin: 0;
209
209
  list-style: none;
210
210
 
@@ -46,7 +46,7 @@ $govuk-modal-wide-breakpoint: $govuk-page-width + $govuk-modal-margin * 2 + $gov
46
46
  bottom: inherit;
47
47
  left: inherit;
48
48
  width: auto;
49
- max-width: $govuk-page-width * calc(2 / 3);
49
+ max-width: $govuk-page-width * 2 / 3;
50
50
  height: auto;
51
51
  margin: $govuk-modal-margin auto;
52
52
  border: $govuk-border-width-form-element solid $govuk-input-border-colour;
@@ -65,7 +65,7 @@ $large-input-size: 50px;
65
65
  }
66
66
 
67
67
  .gem-c-search__input[type="search"] { // overly specific to prevent some overrides from outside
68
- @include govuk-font($size: 19, $line-height: calc(28 / 19));
68
+ @include govuk-font($size: 19, $line-height: (28 / 19));
69
69
  margin: 0;
70
70
  width: 100%;
71
71
  height: govuk-em(40, 16);
@@ -108,7 +108,7 @@ $large-input-size: 50px;
108
108
 
109
109
  @mixin icon-positioning($container-size) {
110
110
  $icon-dimension: 20px;
111
- $icon-position: calc(($container-size - $icon-dimension) / 2);
111
+ $icon-position: ($container-size - $icon-dimension) / 2;
112
112
 
113
113
  display: block;
114
114
  pointer-events: none;
@@ -18,7 +18,7 @@ $share-button-height: 30px;
18
18
  padding-left: ($share-button-width + govuk-spacing(2));
19
19
  padding-right: govuk-spacing(2);
20
20
  margin-bottom: govuk-spacing(2);
21
- font-size: calc($share-button-height / 2);
21
+ font-size: $share-button-height / 2;
22
22
  }
23
23
 
24
24
  .gem-c-share-links__link {
@@ -32,7 +32,7 @@
32
32
  }
33
33
 
34
34
  .gem-c-step-nav-related__pretitle {
35
- margin-bottom: calc(govuk-spacing(6) / 4);
35
+ margin-bottom: govuk-spacing(6) / 4;
36
36
  }
37
37
  }
38
38
 
@@ -17,12 +17,12 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
17
17
 
18
18
  @mixin step-nav-line-position {
19
19
  left: 0;
20
- margin-left: govuk-em(calc($number-circle-size / 2) - calc($stroke-width / 2), 16);
20
+ margin-left: govuk-em(($number-circle-size / 2) - ($stroke-width / 2), 16);
21
21
  }
22
22
 
23
23
  @mixin step-nav-line-position-large {
24
24
  left: 0;
25
- margin-left: govuk-em(calc($number-circle-size-large / 2) - calc($stroke-width / 2), 16);
25
+ margin-left: govuk-em(($number-circle-size-large / 2) - ($stroke-width / 2), 16);
26
26
  }
27
27
 
28
28
  // custom mixin as govuk-font does undesirable things at different breakpoints
@@ -260,8 +260,8 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
260
260
  z-index: 6;
261
261
  bottom: 0;
262
262
  left: 0;
263
- margin-left: calc($number-circle-size / 4);
264
- width: calc($number-circle-size / 2);
263
+ margin-left: $number-circle-size / 4;
264
+ width: $number-circle-size / 2;
265
265
  height: 0;
266
266
  border-bottom: solid $stroke-width govuk-colour("mid-grey", $legacy: "grey-2");
267
267
  }
@@ -278,8 +278,8 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
278
278
  .gem-c-step-nav--large & {
279
279
  @include govuk-media-query($from: tablet) {
280
280
  &::before {
281
- margin-left: calc($number-circle-size-large / 4);
282
- width: calc($number-circle-size-large / 2);
281
+ margin-left: $number-circle-size-large / 4;
282
+ width: $number-circle-size-large / 2;
283
283
  }
284
284
 
285
285
  &::after {
@@ -449,7 +449,7 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
449
449
 
450
450
  .gem-c-step-nav--large & + .gem-c-step-nav__list {
451
451
  @include govuk-media-query($from: tablet) {
452
- margin-top: -govuk-spacing(3);
452
+ margin-top: -(govuk-spacing(3));
453
453
  }
454
454
  }
455
455
  }
@@ -508,9 +508,9 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
508
508
  z-index: 5;
509
509
  top: .6em; // position the dot to align with the first row of text in the link
510
510
  left: -(govuk-spacing(6) + govuk-spacing(3));
511
- margin-top: - calc($stroke-width / 2);
512
- margin-left: calc($number-circle-size / 2);
513
- width: calc($number-circle-size / 2);
511
+ margin-top: -($stroke-width / 2);
512
+ margin-left: ($number-circle-size / 2);
513
+ width: $number-circle-size / 2;
514
514
  height: $stroke-width;
515
515
  background: govuk-colour("black");
516
516
  }
@@ -519,7 +519,7 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
519
519
  @include govuk-media-query($from: tablet) {
520
520
  &::before {
521
521
  left: -(govuk-spacing(9));
522
- margin-left: calc($number-circle-size-large / 2);
522
+ margin-left: ($number-circle-size-large / 2);
523
523
  }
524
524
  }
525
525
  }
@@ -8,7 +8,7 @@ $table-header-background-colour: govuk-colour("light-grey", $legacy: "grey-3");
8
8
  $sort-link-active-colour: govuk-colour("white");
9
9
  $sort-link-arrow-size: 14px;
10
10
  $sort-link-arrow-size-small: 8px;
11
- $sort-link-arrow-spacing: calc($sort-link-arrow-size / 2);
11
+ $sort-link-arrow-spacing: $sort-link-arrow-size / 2;
12
12
  $table-row-hover-background-colour: rgba(43, 140, 196, .2);
13
13
  $table-row-even-background-colour: govuk-colour("light-grey", $legacy: "grey-4");
14
14
 
@@ -23,10 +23,10 @@
23
23
  padding-left: $icon-size;
24
24
 
25
25
  // Center the icon around the baseline
26
- padding-top: calc(($icon-size - $line-height-mobile) / 2);
26
+ padding-top: ($icon-size - $line-height-mobile) / 2;
27
27
 
28
28
  @include govuk-media-query($from: tablet) {
29
- padding-top: calc(($icon-size - $line-height-tablet) / 2);
29
+ padding-top: ($icon-size - $line-height-tablet) / 2;
30
30
  }
31
31
 
32
32
  p {
@@ -3,7 +3,7 @@
3
3
 
4
4
  @include govuk-font($size: 16);
5
5
 
6
- $gutter-two-thirds: $govuk-gutter - calc($govuk-gutter / 3);
6
+ $gutter-two-thirds: $govuk-gutter - ($govuk-gutter / 3);
7
7
 
8
8
  ol,
9
9
  ul,
@@ -48,7 +48,7 @@
48
48
  /// }
49
49
  ///
50
50
  @mixin columns($items, $columns, $selector: "*", $flow: row) {
51
- $rows: ceil(calc($items / $columns));
51
+ $rows: ceil($items / $columns);
52
52
 
53
53
  display: -ms-grid;
54
54
  display: grid;
@@ -305,7 +305,7 @@ en:
305
305
  label: Search on GOV.UK
306
306
  search_button: Search
307
307
  share_links:
308
- all_opens_in_new_tab: Sharing will open the page in a new tab
308
+ all_opens_in_new_tab: The following links open in a new tab
309
309
  opens_in_new_tab: "(opens in new tab)"
310
310
  show_password:
311
311
  announce_hide: Your password is hidden
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "37.2.0".freeze
2
+ VERSION = "37.2.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 37.2.0
4
+ version: 37.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-08 00:00:00.000000000 Z
11
+ date: 2024-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -521,7 +521,6 @@ files:
521
521
  - app/assets/javascripts/govuk_publishing_components/lib.js
522
522
  - app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js
523
523
  - app/assets/javascripts/govuk_publishing_components/lib/cookie-settings.js
524
- - app/assets/javascripts/govuk_publishing_components/lib/current-location.js
525
524
  - app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
526
525
  - app/assets/javascripts/govuk_publishing_components/lib/govspeak/all.js
527
526
  - app/assets/javascripts/govuk_publishing_components/lib/govspeak/barchart-enhancement.js
@@ -1,10 +0,0 @@
1
- // used by the step by step navigation component
2
-
3
- (function (root) {
4
- 'use strict'
5
- window.GOVUK = window.GOVUK || {}
6
-
7
- window.GOVUK.getCurrentLocation = function () {
8
- return root.location
9
- }
10
- }(window))