govuk_web_banners 1.21.1 → 1.22.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c02d4f78ef54892d89582282415c270cba78ed28fc6e40d439a58aaeec651db
|
|
4
|
+
data.tar.gz: 89a0ce539943a5dc39e67317b546eebdfd6d29c7402ed6f3ceffe6c33574cfd5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97e64d630c950c816e3b61bf7fd2de5dfddc0db8cae23949722e0454f76b21b3eeb46c74eadbbd538b6e57dcb8a146ff1634356b94fa9a5809160678a1c47695
|
|
7
|
+
data.tar.gz: fd34b629b2607fa460c02bd0892e0e1df044e6c4eb533db795c5a147c2fa883e3481a18c6d758b1a4fe72cda972d94761ed1b212a16f19d930d4e26b993a30b2
|
data/README.md
CHANGED
|
@@ -27,6 +27,23 @@ Add the JS dependencies to your existing asset dependencies file:
|
|
|
27
27
|
//= require govuk_web_banners/dependencies
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
+
Add the CSS dependencies to your application's CSS file - Note that this is not necessary
|
|
31
|
+
if you have single-component support in your app and you're rendering the components early
|
|
32
|
+
enough in your layout that their styles can be picked up automatically:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
@import "govuk_web_banners/dependencies"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Note: this import relies on frontend and component support being available in your application's
|
|
39
|
+
CSS file. If you do not already have the following lines at the top of the file you'll need to add
|
|
40
|
+
them:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
@import 'govuk_publishing_components/govuk_frontend_support';
|
|
44
|
+
@import 'govuk_publishing_components/component_support';
|
|
45
|
+
```
|
|
46
|
+
|
|
30
47
|
## Adding emergency banners
|
|
31
48
|
|
|
32
49
|
Emergency banners are passed to the [Layout for
|
|
@@ -74,6 +91,13 @@ Rails.application.config.emergency_banner_redis_client = Redis.new(
|
|
|
74
91
|
)
|
|
75
92
|
```
|
|
76
93
|
|
|
94
|
+
### Required stylesheets
|
|
95
|
+
|
|
96
|
+
If you're not including the style dependencies as above, and not using
|
|
97
|
+
single-component autoloading of styles, you'll need to import:
|
|
98
|
+
|
|
99
|
+
`@import "govuk_web_banners/components/emergency-banner"`
|
|
100
|
+
|
|
77
101
|
## Adding global banners
|
|
78
102
|
|
|
79
103
|
Global banners are passed to the [Layout for
|
|
@@ -163,6 +187,13 @@ Note that some of this validation code is in the
|
|
|
163
187
|
tested to ensure the checking is valid, but will not be bundled into the
|
|
164
188
|
released gem.
|
|
165
189
|
|
|
190
|
+
### Required stylesheets
|
|
191
|
+
|
|
192
|
+
If you're not including the style dependencies as above, and not using
|
|
193
|
+
single-component autoloading of styles, you'll need to import:
|
|
194
|
+
|
|
195
|
+
`@import "govuk_web_banners/components/global-banner"`
|
|
196
|
+
|
|
166
197
|
## Adding recruitment banners
|
|
167
198
|
|
|
168
199
|
Add a call to the partial in the layout or view that you want banners to appear
|
|
@@ -175,15 +206,10 @@ breadcrumbs and just above the `main` element):
|
|
|
175
206
|
|
|
176
207
|
### Required stylesheets
|
|
177
208
|
|
|
178
|
-
If you
|
|
179
|
-
|
|
180
|
-
render_component_stylesheets in your layout.
|
|
181
|
-
|
|
182
|
-
If you are _not_ using individual component stylesheets in your app, you will
|
|
183
|
-
have to make sure the intervention component's styles are included in your
|
|
184
|
-
application stylesheet:
|
|
209
|
+
If you're not including the style dependencies as above, and not using
|
|
210
|
+
single-component autoloading of styles, you'll need to import:
|
|
185
211
|
|
|
186
|
-
`@import "
|
|
212
|
+
`@import "govuk_web_banners/components/intervention"`
|
|
187
213
|
|
|
188
214
|
## Updating banner information in the gem
|
|
189
215
|
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
# Check README.md for how to format this file
|
|
2
|
-
global_banners:
|
|
3
|
-
- name: Emergency Alerts
|
|
4
|
-
title: "Emergency Alerts"
|
|
5
|
-
title_href: /alerts
|
|
6
|
-
text: "Test on Sunday 7 September, 3pm"
|
|
7
|
-
always_visible: true
|
|
8
|
-
start_date: 2025/08/31
|
|
9
|
-
end_date: 2025/09/08
|
|
2
|
+
global_banners: []
|
|
@@ -149,33 +149,6 @@ banners:
|
|
|
149
149
|
- /government/publications/trade-mark-forms-and-fees/trade-mark-forms-and-fees
|
|
150
150
|
start_date: 2025/10/30
|
|
151
151
|
end_date: 2025/11/21
|
|
152
|
-
- name: DVLA - research 2025/11/03
|
|
153
|
-
suggestion_text: "Help improve GOV.UK"
|
|
154
|
-
suggestion_link_text: "Sign up to take part in user research (opens in a new tab)"
|
|
155
|
-
survey_url: https://surveys.publishing.service.gov.uk/s/4HMJQX/
|
|
156
|
-
page_paths:
|
|
157
|
-
# frontend
|
|
158
|
-
- /contact-the-dvla
|
|
159
|
-
- /health-conditions-and-driving
|
|
160
|
-
- /health-conditions-and-driving/find-condition-online
|
|
161
|
-
- /reapply-driving-licence-medical-condition
|
|
162
|
-
- /renew-medical-driving-licence
|
|
163
|
-
- /driving-medical-conditions
|
|
164
|
-
- /driving-eyesight-rules
|
|
165
|
-
- /check-vehicle-tax
|
|
166
|
-
- /check-mot-status
|
|
167
|
-
- /vehicle-tax
|
|
168
|
-
- /get-vehicle-information-from-dvla
|
|
169
|
-
- /view-driving-licence
|
|
170
|
-
- /sold-bought-vehicle
|
|
171
|
-
- /apply-first-provisional-driving-licence
|
|
172
|
-
- /change-address-driving-licence
|
|
173
|
-
- /renew-driving-licence
|
|
174
|
-
- /make-a-sorn
|
|
175
|
-
- /replace-a-driving-licence
|
|
176
|
-
- /apply-blue-badge
|
|
177
|
-
start_date: 2025/11/03
|
|
178
|
-
end_date: 2025/12/01
|
|
179
152
|
- name: HMRC banner - CXD Guidance 2025/11/20
|
|
180
153
|
suggestion_text: "Help improve GOV.UK"
|
|
181
154
|
suggestion_link_text: "Sign up to take part in user research (opens in a new tab)"
|
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: 1.
|
|
4
|
+
version: 1.22.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
@@ -175,6 +175,7 @@ files:
|
|
|
175
175
|
- Rakefile
|
|
176
176
|
- app/assets/config/govuk_web_banners_manifest.js
|
|
177
177
|
- app/assets/javascripts/govuk_web_banners/dependencies.js
|
|
178
|
+
- app/assets/stylesheets/govuk_web_banners/dependencies.scss
|
|
178
179
|
- app/views/govuk_web_banners/_emergency_banner.html.erb
|
|
179
180
|
- app/views/govuk_web_banners/_global_banner.html.erb
|
|
180
181
|
- app/views/govuk_web_banners/_recruitment_banner.html.erb
|