govuk_publishing_components 27.9.2 → 27.10.3
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/app/assets/javascripts/govuk_publishing_components/analytics/explicit-cross-domain-links.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +5 -5
- data/app/views/govuk_publishing_components/components/_admin_analytics.html.erb +4 -1
- data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/_highlight_boxes.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +2 -1
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +20 -16
- data/app/views/govuk_publishing_components/components/_taxonomy_list.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/layout_for_public/_account-layout.html.erb +1 -9
- data/config/locales/en.yml +1 -3
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 657e4c5dd25ccaf9fbcb4052fb9b48033884e4ea11a67853a774d4c94ff987c9
|
|
4
|
+
data.tar.gz: c315a4c225848b20d8a1db997a86844fc659cf26700a2297b74caf007bc2c96e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbbe3180641788a4f06261a5e5ef9a68fdae6f34a4d55d9585cf021aa22ab4ccd00b4da2afca6709eb78e06feb42896c8889e4ce8222268f37a98de565055f26
|
|
7
|
+
data.tar.gz: b172a6ff735e768886eac870678a6929cc5d288055756a3176b39b26255e50c6543b913728ee7bf1bc1f2333ebb9e1075b4f241cd675d98aa8e655b898776375
|
data/app/assets/javascripts/govuk_publishing_components/analytics/explicit-cross-domain-links.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// If engaged and rejected, append only ?cookie-consent=reject
|
|
15
15
|
// If engaged and accepted usage, append ?_ga=clientid if available and cookie-consent=accept
|
|
16
16
|
|
|
17
|
-
if (cookieBannerEngaged
|
|
17
|
+
if (cookieBannerEngaged !== 'true') {
|
|
18
18
|
this.decorate(element, 'cookie_consent=not-engaged')
|
|
19
19
|
return
|
|
20
20
|
}
|
data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js
CHANGED
|
@@ -233,6 +233,8 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
|
233
233
|
// The menu needs to be updated when the window is resized to make sure that
|
|
234
234
|
// the space needed for the dropdown menu is correct.
|
|
235
235
|
window.addEventListener('resize', this.updateStates.bind(this), { passive: true })
|
|
236
|
+
|
|
237
|
+
this.$module.classList.add('js-module-initialised')
|
|
236
238
|
}
|
|
237
239
|
|
|
238
240
|
Modules.SuperNavigationMegaMenu = SuperNavigationMegaMenu
|
|
@@ -157,8 +157,8 @@ $chevron-indent-spacing: 7px;
|
|
|
157
157
|
.gem-c-layout-super-navigation-header {
|
|
158
158
|
background: govuk-colour("black");
|
|
159
159
|
border-top: 1px solid govuk-colour("black");
|
|
160
|
+
margin-top: -1px;
|
|
160
161
|
position: relative;
|
|
161
|
-
top: -1px;
|
|
162
162
|
|
|
163
163
|
.lte-ie8 & {
|
|
164
164
|
height: govuk-spacing(9);
|
|
@@ -225,7 +225,7 @@ $chevron-indent-spacing: 7px;
|
|
|
225
225
|
display: inline-block;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
.js-
|
|
228
|
+
.js-module-initialised & {
|
|
229
229
|
padding: 0 0 govuk-spacing(9) 0;
|
|
230
230
|
|
|
231
231
|
@include govuk-media-query($from: "desktop") {
|
|
@@ -367,7 +367,7 @@ $chevron-indent-spacing: 7px;
|
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
.gem-c-layout-super-navigation-header__navigation-item-link {
|
|
370
|
-
.js-
|
|
370
|
+
.js-module-initialised & {
|
|
371
371
|
margin-left: govuk-spacing(4);
|
|
372
372
|
}
|
|
373
373
|
}
|
|
@@ -535,7 +535,7 @@ $chevron-indent-spacing: 7px;
|
|
|
535
535
|
padding-bottom: govuk-spacing(4);
|
|
536
536
|
padding-top: govuk-spacing(4);
|
|
537
537
|
|
|
538
|
-
.js-
|
|
538
|
+
.js-module-initialised & {
|
|
539
539
|
display: block;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
@@ -856,7 +856,7 @@ $chevron-indent-spacing: 7px;
|
|
|
856
856
|
@include govuk-media-query($from: "desktop") {
|
|
857
857
|
margin: 0;
|
|
858
858
|
|
|
859
|
-
.js-
|
|
859
|
+
.js-module-initialised & {
|
|
860
860
|
left: 0;
|
|
861
861
|
position: absolute;
|
|
862
862
|
right: 0;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
<%
|
|
1
|
+
<%
|
|
2
|
+
warn('DEPRECATION WARNING: admin_analytics component is deprecated and will be removed in a future major release of govuk_publishing_components')
|
|
3
|
+
user_organisation ||= nil
|
|
4
|
+
%>
|
|
2
5
|
|
|
3
6
|
<script class="analytics">
|
|
4
7
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
navigation_items ||= []
|
|
9
9
|
omit_feedback_form ||= false
|
|
10
10
|
omit_footer_navigation ||= false
|
|
11
|
+
omit_footer_border ||= false
|
|
11
12
|
omit_header ||= false
|
|
12
13
|
product_name ||= nil
|
|
13
14
|
show_explore_header ||= false
|
|
@@ -143,7 +144,7 @@
|
|
|
143
144
|
|
|
144
145
|
<% unless local_assigns[:hide_footer_links] %>
|
|
145
146
|
<%= render "govuk_publishing_components/components/layout_footer", {
|
|
146
|
-
with_border:
|
|
147
|
+
with_border: !omit_footer_border,
|
|
147
148
|
navigation: omit_footer_navigation ? nil : layout_helper.footer_navigation,
|
|
148
149
|
meta: layout_helper.footer_meta,
|
|
149
150
|
} %>
|
data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb
CHANGED
|
@@ -113,22 +113,26 @@
|
|
|
113
113
|
track_dimension_index: "29",
|
|
114
114
|
}
|
|
115
115
|
} %>
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
116
|
+
<%= content_tag(:button, link[:label], {
|
|
117
|
+
aria: {
|
|
118
|
+
controls: "super-navigation-menu__section-#{unique_id}",
|
|
119
|
+
expanded: false,
|
|
120
|
+
label: show_menu_text,
|
|
121
|
+
},
|
|
122
|
+
class: "gem-c-layout-super-navigation-header__navigation-second-toggle-button",
|
|
123
|
+
data: {
|
|
124
|
+
text_for_hide: hide_menu_text,
|
|
125
|
+
text_for_show: show_menu_text,
|
|
126
|
+
toggle_desktop_group: "top",
|
|
127
|
+
toggle_mobile_group: "second",
|
|
128
|
+
tracking_key: tracking_label,
|
|
129
|
+
},
|
|
130
|
+
hidden: true,
|
|
131
|
+
id: "super-navigation-menu__section-#{unique_id}-toggle",
|
|
132
|
+
type: "button",
|
|
133
|
+
}) if has_children %>
|
|
134
|
+
</div>
|
|
135
|
+
<% if has_children %>
|
|
132
136
|
<div
|
|
133
137
|
hidden
|
|
134
138
|
class="gem-c-layout-super-navigation-header__navigation-dropdown-menu"
|
data/app/views/govuk_publishing_components/components/layout_for_public/_account-layout.html.erb
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
<div class="govuk-width-container">
|
|
2
|
-
<% message = capture do %>
|
|
3
|
-
<%= t("components.layout_for_public.account_layout.feedback.banners.phase_intro") %>
|
|
4
|
-
<a class="govuk-link" href=<%= GovukPersonalisation::Urls.feedback %>>
|
|
5
|
-
<%= t("components.layout_for_public.account_layout.feedback.banners.phase_link") %>
|
|
6
|
-
</a>
|
|
7
|
-
<%= t("components.layout_for_public.account_layout.feedback.banners.phase_outro") %>
|
|
8
|
-
<% end %>
|
|
9
|
-
|
|
10
2
|
<%= render "govuk_publishing_components/components/phase_banner", {
|
|
11
3
|
phase: "beta",
|
|
12
|
-
message:
|
|
4
|
+
message: sanitize(t("components.layout_for_public.account_layout.feedback.banners.phase_banner_html"))
|
|
13
5
|
} unless omit_account_phase_banner %>
|
|
14
6
|
|
|
15
7
|
<div class="govuk-grid-row govuk-main-wrapper">
|
data/config/locales/en.yml
CHANGED
|
@@ -94,9 +94,7 @@ en:
|
|
|
94
94
|
account_layout:
|
|
95
95
|
feedback:
|
|
96
96
|
banners:
|
|
97
|
-
|
|
98
|
-
phase_link: feedback
|
|
99
|
-
phase_outro: will help us to improve it.
|
|
97
|
+
phase_banner_html: This is a new service – your <a class="govuk-link" href="https://signin.account.gov.uk/contact-us?supportType=PUBLIC">feedback</a> will help us to improve it.
|
|
100
98
|
navigation:
|
|
101
99
|
destroy_user_session: Sign out
|
|
102
100
|
menu_bar:
|
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: 27.
|
|
4
|
+
version: 27.10.3
|
|
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: 2021-
|
|
11
|
+
date: 2021-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: govuk_app_config
|