slimmer 18.6.0 → 18.6.1

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: 929c5fc128e697424a5a97dde4a4fa38028936ae3d2243cce7bd6f9c06472437
4
- data.tar.gz: 5a0edbbc1bbb1bf5a53409d1fa215a7f2d6fbc224e6c496e7d0e110c092f4b99
3
+ metadata.gz: 46de5cf9b03bf7ca0232f46c17d808c3e2b16052ae191b792f838ca4afa4123e
4
+ data.tar.gz: 4f597f08678d84dd2aefb3901491b00534f8c4d5ff0e37d788e712dd92ba5a9a
5
5
  SHA512:
6
- metadata.gz: 5ff2f81108c967b67edd10428c266e21843cb16a1e4ce68b2068e7328537e9ba023e3934f0a7cade8d18fb5abb7f6884557f8d2e70ecb603fdb18b808d06268c
7
- data.tar.gz: a6869381c29230dea482014b2a7e7efcf155ed9d9f069ad9a193e6a0b1050585b1a4f313adceb261b3feccb7a6b473323192781b473b0f3edadb9a50281fab1c
6
+ metadata.gz: b4a9ffdcec2ff9a765423bde3ee69c63d5b3bd736b6a482223a1b6c44307fb0caa163fc5fcdf9a744b9ca5750ee5cec17636aab740bf5027e00072526028d421
7
+ data.tar.gz: 7aabf4bec3f2b9f42ffd2e1874d07e387c7a2c22b4103251fc2b3404e53d2bd87e09a011126b3bf5b1dd7aad25d3ab9cd7efc5fef3828c72e20a19b80e89dbc0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 18.6.1
2
+
3
+ * Update body classes for govuk-frontend-v5
4
+
1
5
  # 18.6.0
2
6
 
3
7
  * Remove the part of the body from the error message for SourceWrapperNotFoundError and do some cleanup
@@ -3,7 +3,7 @@
3
3
  <title>Test Template</title>
4
4
  </head>
5
5
  <body>
6
- <script>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
6
+ <script>document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');</script>
7
7
 
8
8
  <header id="global-header">
9
9
  <div class="header-wrapper"></div>
@@ -3,7 +3,7 @@
3
3
  <title>Test Template</title>
4
4
  </head>
5
5
  <body>
6
- <script>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
6
+ <script>document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');</script>
7
7
 
8
8
  <header id="global-header">
9
9
  <div class="header-wrapper"></div>
@@ -1,3 +1,3 @@
1
1
  module Slimmer
2
- VERSION = "18.6.0".freeze
2
+ VERSION = "18.6.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slimmer
3
3
  version: !ruby/object:Gem::Version
4
- version: 18.6.0
4
+ version: 18.6.1
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-06-28 00:00:00.000000000 Z
11
+ date: 2024-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json