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 +4 -4
- data/README.md +4 -12
- data/app/assets/stylesheets/govuk_web_banners/dependencies.scss +4 -4
- data/lib/govuk_web_banners/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7bd33dae0fd9781e331ad3b4a14f2e24537235fe5a246e9fc212c46443ab58a5
|
|
4
|
+
data.tar.gz: 7c3fc737c5c433eeb2a63b7c6976f1bebdc22e3f4d5fdfdc7c5f74743840601f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
@
|
|
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
|
-
`@
|
|
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
|
-
`@
|
|
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
|
-
`@
|
|
196
|
+
`@use "govuk_publishing_components/components/intervention"`
|
|
205
197
|
|
|
206
198
|
## Updating banner information in the gem
|
|
207
199
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
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';
|