govuk_web_banners 2.0.0 → 2.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c67d399454fb7c405daf067f772644b1270e09f875241eb04e8f8ef43ee7409
4
- data.tar.gz: 099e3c89fc78047e89d1bbd7639356e80fac2fb0613bb188caf1cc181fc8dd7a
3
+ metadata.gz: 7bd33dae0fd9781e331ad3b4a14f2e24537235fe5a246e9fc212c46443ab58a5
4
+ data.tar.gz: 7c3fc737c5c433eeb2a63b7c6976f1bebdc22e3f4d5fdfdc7c5f74743840601f
5
5
  SHA512:
6
- metadata.gz: 91f8efc2c72944f4b7de7a45f3f681df5cf3588c3f7ead53d8dd824a1197c5bf0f258289069fb0f579253b9c0faeeeaa9de3ee1d86a25ec4fc0f30242eab378a
7
- data.tar.gz: 3bcf668382bf506adb566df27aaef27785133461d7acab449ae33f73e5927f5b5e588099ba2acab9e5ac1b7dbdfde3220b91fbaa963bdf586394576505e1db19
6
+ metadata.gz: 0b8e48bc892795a792ed5c6fa798a36d693fe356e4e4bc3cf570dcc940e2bf824bf164d45a69edb90501fcfade077ae0765fd0c450b7b8552102113d4bb78bed
7
+ data.tar.gz: e9d96aee15aefdb379b1860ce5ab9baffadc7b6a5ffaa30b7f1d5612051b31585db70ec574f3a781467ba88f84d06fc119010725048f677cd17e88a308479b0b
data/README.md CHANGED
@@ -34,15 +34,7 @@ if you have single-component support in your app and you're rendering the compon
34
34
  enough in your layout that their styles can be picked up automatically.
35
35
 
36
36
  ```SCSS
37
- @import "govuk_web_banners/dependencies";
38
- ```
39
-
40
- Note: this import relies on frontend and component support being available in your application's
41
- main `.scss` file. Make sure that the following lines are at the top of the file.
42
-
43
- ```SCSS
44
- @import 'govuk_publishing_components/govuk_frontend_support';
45
- @import 'govuk_publishing_components/component_support';
37
+ @use "govuk_web_banners/dependencies";
46
38
  ```
47
39
 
48
40
  ## Adding emergency banners
@@ -91,7 +83,7 @@ Rails.application.config.emergency_banner = GovukWebBanners::EmergencyBanner.new
91
83
  If you're not including the style dependencies as above, and not using
92
84
  single-component autoloading of styles, you'll need to import:
93
85
 
94
- `@import "govuk_web_banners/components/emergency-banner"`
86
+ `@use "govuk_publishing_components/components/emergency-banner"`
95
87
 
96
88
  ## Adding global banners
97
89
 
@@ -184,7 +176,7 @@ released gem.
184
176
  If you're not including the style dependencies as above, and not using
185
177
  single-component autoloading of styles, you'll need to import:
186
178
 
187
- `@import "govuk_web_banners/components/global-banner"`
179
+ `@use "govuk_publishing_components/components/global-banner"`
188
180
 
189
181
  ## Adding recruitment banners
190
182
 
@@ -201,7 +193,7 @@ breadcrumbs and just above the `main` element):
201
193
  If you're not including the style dependencies as above, and not using
202
194
  single-component autoloading of styles, you'll need to import:
203
195
 
204
- `@import "govuk_web_banners/components/intervention"`
196
+ `@use "govuk_publishing_components/components/intervention"`
205
197
 
206
198
  ## Updating banner information in the gem
207
199
 
@@ -1,4 +1,4 @@
1
- @import 'govuk_publishing_components/components/emergency-banner';
2
- @import 'govuk_publishing_components/components/global-banner';
3
- @import 'govuk_publishing_components/components/intervention';
4
- @import 'govuk_publishing_components/components/notice';
1
+ @use 'govuk_publishing_components/components/emergency-banner';
2
+ @use 'govuk_publishing_components/components/global-banner';
3
+ @use 'govuk_publishing_components/components/intervention';
4
+ @use 'govuk_publishing_components/components/notice';
@@ -1,3 +1,3 @@
1
1
  module GovukWebBanners
2
- VERSION = "2.0.0".freeze
2
+ VERSION = "2.1.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_web_banners
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev