govuk_publishing_components 24.18.3 → 24.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics/custom-dimensions.js +2 -1
- data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +14 -0
- data/app/assets/javascripts/govuk_publishing_components/components/details.js +6 -4
- data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +71 -0
- data/app/assets/javascripts/govuk_publishing_components/lib/trigger-event.js +13 -2
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +5 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +16 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +125 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +9 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-super-navigation-header.scss +3 -0
- data/app/views/govuk_publishing_components/component_guide/index.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +5 -5
- data/app/views/govuk_publishing_components/components/_details.html.erb +7 -4
- data/app/views/govuk_publishing_components/components/_govspeak.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_intervention.html.erb +15 -0
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +17 -12
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +121 -0
- data/app/views/govuk_publishing_components/components/docs/checkboxes.yml +22 -22
- data/app/views/govuk_publishing_components/components/docs/details.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +9 -0
- data/app/views/govuk_publishing_components/components/docs/intervention.yml +24 -0
- data/app/views/govuk_publishing_components/components/docs/layout_header.yml +4 -1
- data/app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml +22 -0
- data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +3 -4
- data/config/locales/ar.yml +8 -0
- data/config/locales/az.yml +8 -0
- data/config/locales/be.yml +8 -0
- data/config/locales/bg.yml +8 -0
- data/config/locales/bn.yml +8 -0
- data/config/locales/cs.yml +8 -0
- data/config/locales/cy.yml +14 -6
- data/config/locales/da.yml +8 -0
- data/config/locales/de.yml +8 -0
- data/config/locales/dr.yml +8 -0
- data/config/locales/el.yml +8 -0
- data/config/locales/en.yml +89 -0
- data/config/locales/es-419.yml +8 -0
- data/config/locales/es.yml +8 -0
- data/config/locales/et.yml +8 -0
- data/config/locales/fa.yml +8 -0
- data/config/locales/fi.yml +8 -0
- data/config/locales/fr.yml +8 -0
- data/config/locales/gd.yml +8 -0
- data/config/locales/gu.yml +8 -0
- data/config/locales/he.yml +8 -0
- data/config/locales/hi.yml +8 -0
- data/config/locales/hr.yml +8 -0
- data/config/locales/hu.yml +8 -0
- data/config/locales/hy.yml +8 -0
- data/config/locales/id.yml +8 -0
- data/config/locales/is.yml +8 -0
- data/config/locales/it.yml +8 -0
- data/config/locales/ja.yml +8 -0
- data/config/locales/ka.yml +8 -0
- data/config/locales/kk.yml +8 -0
- data/config/locales/ko.yml +8 -0
- data/config/locales/lt.yml +8 -0
- data/config/locales/lv.yml +8 -0
- data/config/locales/ms.yml +8 -0
- data/config/locales/mt.yml +8 -0
- data/config/locales/nl.yml +8 -0
- data/config/locales/no.yml +8 -0
- data/config/locales/pa-pk.yml +8 -0
- data/config/locales/pa.yml +8 -0
- data/config/locales/pl.yml +8 -0
- data/config/locales/ps.yml +8 -0
- data/config/locales/pt.yml +8 -0
- data/config/locales/ro.yml +8 -0
- data/config/locales/ru.yml +8 -0
- data/config/locales/si.yml +8 -0
- data/config/locales/sk.yml +8 -0
- data/config/locales/sl.yml +8 -0
- data/config/locales/so.yml +8 -0
- data/config/locales/sq.yml +8 -0
- data/config/locales/sr.yml +8 -0
- data/config/locales/sv.yml +8 -0
- data/config/locales/sw.yml +8 -0
- data/config/locales/ta.yml +8 -0
- data/config/locales/th.yml +8 -0
- data/config/locales/tk.yml +8 -0
- data/config/locales/tr.yml +8 -0
- data/config/locales/uk.yml +8 -0
- data/config/locales/ur.yml +8 -0
- data/config/locales/uz.yml +8 -0
- data/config/locales/vi.yml +8 -0
- data/config/locales/zh-hk.yml +8 -0
- data/config/locales/zh-tw.yml +8 -0
- data/config/locales/zh.yml +8 -0
- data/lib/govuk_publishing_components/app_helpers/environment.rb +3 -8
- data/lib/govuk_publishing_components/presenters/meta_tags.rb +11 -4
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50a7296ca62da87133989dc55c692649132efeee4d4a2eedbb253291ea489459
|
4
|
+
data.tar.gz: 026f82dfb2d8b86abd040d5a69ccae280190e345247404e7621aeea89f30eca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45190fd0137cd36e04523ce5d97783cda446256a4089646b317404a410be28f7e6c96798ec9d5a56fdd130cbfa0f47630ade875dfe8af61a2b9c52f0111f4abb
|
7
|
+
data.tar.gz: bc733b83f05ba2520729a23ecb56788bc8552ef082babc9b0743317cf0808fefc7baab2199dfa1fb77e168b4c38cf72d8b9068e38e67889682b088b2b707641f
|
@@ -63,7 +63,8 @@
|
|
63
63
|
'taxon-ids': { dimension: 59, defaultValue: 'other' },
|
64
64
|
'content-has-history': { dimension: 39, defaultValue: 'false' },
|
65
65
|
'publishing-application': { dimension: 89 },
|
66
|
-
'brexit-audience': { dimension:
|
66
|
+
'brexit-audience': { dimension: 112 },
|
67
|
+
'brexit-superbreadcrumb': { dimension: 111 },
|
67
68
|
stepnavs: { dimension: 96 },
|
68
69
|
'relevant-result-shown': { dimension: 83 },
|
69
70
|
'spelling-suggestion': { dimension: 81 }
|
@@ -206,6 +206,13 @@
|
|
206
206
|
['Percent', 80],
|
207
207
|
['Percent', 100]
|
208
208
|
],
|
209
|
+
'/guidance/brexit-guidance-for-businesses.cy': [
|
210
|
+
['Percent', 20],
|
211
|
+
['Percent', 40],
|
212
|
+
['Percent', 60],
|
213
|
+
['Percent', 80],
|
214
|
+
['Percent', 100]
|
215
|
+
],
|
209
216
|
'/guidance/brexit-guidance-for-individuals-and-families': [
|
210
217
|
['Percent', 20],
|
211
218
|
['Percent', 40],
|
@@ -213,6 +220,13 @@
|
|
213
220
|
['Percent', 80],
|
214
221
|
['Percent', 100]
|
215
222
|
],
|
223
|
+
'/guidance/brexit-guidance-for-individuals-and-families.cy': [
|
224
|
+
['Percent', 20],
|
225
|
+
['Percent', 40],
|
226
|
+
['Percent', 60],
|
227
|
+
['Percent', 80],
|
228
|
+
['Percent', 100]
|
229
|
+
],
|
216
230
|
'/guidance/import-and-export-goods-using-preference-agreements': [
|
217
231
|
['Percent', 20],
|
218
232
|
['Percent', 40],
|
@@ -7,24 +7,26 @@ window.GOVUK.Modules.GovukDetails = window.GOVUKFrontend;
|
|
7
7
|
(function (Modules) {
|
8
8
|
function GemDetails ($module) {
|
9
9
|
this.$module = $module
|
10
|
-
this
|
10
|
+
this.$summary = this.$module.querySelector('.govuk-details__summary')
|
11
|
+
|
12
|
+
this.customTrackLabel = this.$summary.getAttribute('data-track-label')
|
11
13
|
this.detailsClick = this.$module.querySelector('[data-details-track-click]')
|
12
14
|
}
|
13
15
|
|
14
16
|
GemDetails.prototype.init = function () {
|
15
17
|
if (this.customTrackLabel) { // If a custom label has been provided, we can simply call the tracking module
|
16
18
|
var trackDetails = new window.GOVUK.Modules.GemTrackClick()
|
17
|
-
trackDetails.start($(this.$
|
19
|
+
trackDetails.start($(this.$summary))
|
18
20
|
} else if (this.detailsClick) { // If no custom label is set, we use the open/close status as the label
|
19
21
|
this.detailsClick.addEventListener('click', function (event) {
|
20
|
-
this.trackDefault(this.$
|
22
|
+
this.trackDefault(this.$summary)
|
21
23
|
}.bind(this))
|
22
24
|
}
|
23
25
|
}
|
24
26
|
|
25
27
|
GemDetails.prototype.trackDefault = function (element) {
|
26
28
|
if (window.GOVUK.analytics && window.GOVUK.analytics.trackEvent) {
|
27
|
-
var componentStatus = (
|
29
|
+
var componentStatus = (this.$module.getAttribute('open') == null) ? 'open' : 'closed'
|
28
30
|
var trackCategory = element.getAttribute('data-track-category')
|
29
31
|
var trackAction = element.getAttribute('data-track-action')
|
30
32
|
var trackOptions = element.getAttribute('data-track-options')
|
data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
//= require govuk/vendor/polyfills/Element/prototype/classList.js
|
2
|
+
|
3
|
+
window.GOVUK = window.GOVUK || {}
|
4
|
+
window.GOVUK.Modules = window.GOVUK.Modules || {};
|
5
|
+
|
6
|
+
(function (Modules) {
|
7
|
+
function SuperNavigationToggle ($module) {
|
8
|
+
this.$module = $module
|
9
|
+
|
10
|
+
this.showMenuText = $module.getAttribute('data-text-for-show-menu')
|
11
|
+
this.hideMenuText = $module.getAttribute('data-text-for-hide-menu')
|
12
|
+
this.buttonText = $module.getAttribute('data-text-for-button')
|
13
|
+
|
14
|
+
this.$button = this.setupButton($module)
|
15
|
+
|
16
|
+
this.$menu = document.getElementById(this.$button.getAttribute('aria-controls'))
|
17
|
+
|
18
|
+
this.syncStatus()
|
19
|
+
}
|
20
|
+
|
21
|
+
SuperNavigationToggle.prototype.setupButton = function (target) {
|
22
|
+
var menuHeading = target.getAttribute('aria-labelledby')
|
23
|
+
var adjacentTo = target.querySelector('#' + menuHeading)
|
24
|
+
var buttonText = document.createTextNode(this.buttonText)
|
25
|
+
|
26
|
+
var button = document.createElement('button')
|
27
|
+
button.type = 'button'
|
28
|
+
button.className = 'govuk-header__menu-button gem-c-layout-super-navigation-header__menu-button'
|
29
|
+
button.setAttribute('aria-controls', 'super-navigation-menu')
|
30
|
+
button.setAttribute('aria-label', this.showMenuText)
|
31
|
+
button.setAttribute('aria-expanded', false)
|
32
|
+
|
33
|
+
button.appendChild(buttonText)
|
34
|
+
adjacentTo.insertAdjacentElement('beforebegin', button)
|
35
|
+
|
36
|
+
return button
|
37
|
+
}
|
38
|
+
|
39
|
+
SuperNavigationToggle.prototype.syncStatus = function () {
|
40
|
+
this.status = this.$button.getAttribute('aria-expanded') === 'true' ? 'open' : 'closed'
|
41
|
+
}
|
42
|
+
|
43
|
+
SuperNavigationToggle.prototype.closeMenu = function () {
|
44
|
+
this.$menu.classList.remove('gem-c-layout-super-navigation-header__items--open')
|
45
|
+
|
46
|
+
this.$button.classList.remove('govuk-header__menu-button--open')
|
47
|
+
this.$button.setAttribute('aria-expanded', false)
|
48
|
+
this.$button.setAttribute('aria-label', this.showMenuText)
|
49
|
+
}
|
50
|
+
|
51
|
+
SuperNavigationToggle.prototype.openMenu = function () {
|
52
|
+
this.$menu.classList.add('gem-c-layout-super-navigation-header__items--open')
|
53
|
+
|
54
|
+
this.$button.classList.add('govuk-header__menu-button--open')
|
55
|
+
this.$button.setAttribute('aria-expanded', true)
|
56
|
+
this.$button.setAttribute('aria-label', this.hideMenuText)
|
57
|
+
}
|
58
|
+
|
59
|
+
SuperNavigationToggle.prototype.handleToggle = function () {
|
60
|
+
if (this.status === 'open') this.closeMenu()
|
61
|
+
if (this.status === 'closed') this.openMenu()
|
62
|
+
|
63
|
+
this.syncStatus()
|
64
|
+
}
|
65
|
+
|
66
|
+
SuperNavigationToggle.prototype.init = function () {
|
67
|
+
this.$button.addEventListener('click', this.handleToggle.bind(this))
|
68
|
+
}
|
69
|
+
|
70
|
+
Modules.SuperNavigationToggle = SuperNavigationToggle
|
71
|
+
})(window.GOVUK.Modules)
|
@@ -4,9 +4,16 @@
|
|
4
4
|
|
5
5
|
window.GOVUK.triggerEvent = function (element, eventName, parameters) {
|
6
6
|
var params = parameters || {}
|
7
|
-
params.bubbles = true
|
8
|
-
params.cancelable = true
|
9
7
|
var event
|
8
|
+
var keyCode = params.keyCode
|
9
|
+
|
10
|
+
if (!Object.prototype.hasOwnProperty.call(params, 'bubbles')) {
|
11
|
+
params.bubbles = true
|
12
|
+
}
|
13
|
+
|
14
|
+
if (!Object.prototype.hasOwnProperty.call(params, 'cancelable')) {
|
15
|
+
params.cancelable = true
|
16
|
+
}
|
10
17
|
|
11
18
|
if (typeof window.CustomEvent === 'function') {
|
12
19
|
event = new window.CustomEvent(eventName, params)
|
@@ -15,6 +22,10 @@
|
|
15
22
|
event.initCustomEvent(eventName, params.bubbles, params.cancelable, params.detail)
|
16
23
|
}
|
17
24
|
|
25
|
+
if (keyCode) {
|
26
|
+
event.keyCode = keyCode
|
27
|
+
}
|
28
|
+
|
18
29
|
element.dispatchEvent(event)
|
19
30
|
}
|
20
31
|
}(window))
|
@@ -42,12 +42,14 @@ $govuk-new-link-styles: true;
|
|
42
42
|
@import "components/image-card";
|
43
43
|
@import "components/input";
|
44
44
|
@import "components/inset-text";
|
45
|
+
@import "components/intervention";
|
45
46
|
@import "components/inverse-header";
|
46
47
|
@import "components/label";
|
47
48
|
@import "components/layout-footer";
|
48
49
|
@import "components/layout-for-admin";
|
49
50
|
@import "components/layout-for-public";
|
50
51
|
@import "components/layout-header";
|
52
|
+
@import "components/layout-super-navigation-header";
|
51
53
|
@import "components/lead-paragraph";
|
52
54
|
@import "components/metadata";
|
53
55
|
@import "components/modal-dialogue";
|
@@ -8,6 +8,7 @@
|
|
8
8
|
@import "components/print/contents-list";
|
9
9
|
@import "components/print/govspeak-html-publication";
|
10
10
|
@import "components/print/govspeak";
|
11
|
+
@import "components/print/layout-super-navigation-header";
|
11
12
|
@import "components/print/step-by-step-nav-header";
|
12
13
|
@import "components/print/step-by-step-nav";
|
13
14
|
@import "components/print/textarea";
|
@@ -151,11 +151,11 @@
|
|
151
151
|
|
152
152
|
&:before {
|
153
153
|
height: 30px;
|
154
|
-
width:
|
154
|
+
width: 30px;
|
155
155
|
background-image: image-url("govuk_publishing_components/action-link-arrow--brexit.svg");
|
156
156
|
background-repeat: no-repeat;
|
157
|
-
background-size:
|
158
|
-
background-position: 0
|
157
|
+
background-size: 18px auto;
|
158
|
+
background-position: 0 2px;
|
159
159
|
}
|
160
160
|
|
161
161
|
@include govuk-media-query($until: tablet) {
|
@@ -166,7 +166,9 @@
|
|
166
166
|
margin-bottom: govuk-spacing(2);
|
167
167
|
|
168
168
|
&:before {
|
169
|
+
width: 35px;
|
169
170
|
background-position: 0 4px;
|
171
|
+
background-size: 25px auto;
|
170
172
|
}
|
171
173
|
}
|
172
174
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
.gem-c-intervention {
|
2
|
+
@include govuk-text-colour;
|
3
|
+
@include govuk-responsive-padding(4);
|
4
|
+
@include govuk-responsive-margin(4, "bottom");
|
5
|
+
background-color: govuk-colour("light-grey", $legacy: "grey-4");
|
6
|
+
}
|
7
|
+
|
8
|
+
.gem-c-intervention__title {
|
9
|
+
@include govuk-font(24, $weight: bold);
|
10
|
+
margin-top: 0;
|
11
|
+
@include govuk-responsive-margin(4, "bottom");
|
12
|
+
}
|
13
|
+
|
14
|
+
.gem-c-intervention__paragraph {
|
15
|
+
@include govuk-font(19);
|
16
|
+
}
|
@@ -0,0 +1,125 @@
|
|
1
|
+
$search-icon-size: 20px;
|
2
|
+
|
3
|
+
.gem-c-layout-super-navigation-header {
|
4
|
+
background: govuk-colour("black");
|
5
|
+
position: relative;
|
6
|
+
}
|
7
|
+
|
8
|
+
.gem-c-layout-super-navigation-header__header-logo {
|
9
|
+
height: govuk-spacing(6);
|
10
|
+
padding-top: govuk-spacing(3);
|
11
|
+
padding-bottom: govuk-spacing(3);
|
12
|
+
|
13
|
+
@include govuk-media-query($from: "desktop") {
|
14
|
+
display: block;
|
15
|
+
float: left;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.gem-c-layout-super-navigation-header__content {
|
20
|
+
@include govuk-media-query($from: "desktop") {
|
21
|
+
display: block;
|
22
|
+
float: right;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.gem-c-layout-super-navigation-header__items {
|
27
|
+
list-style: none;
|
28
|
+
margin: 0;
|
29
|
+
padding: 0 0 govuk-spacing(1) 0;
|
30
|
+
|
31
|
+
@include govuk-media-query($from: "desktop") {
|
32
|
+
padding: 0;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.gem-c-layout-super-navigation-header__item {
|
37
|
+
margin-right: 0;
|
38
|
+
padding: govuk-spacing(1) 0;
|
39
|
+
|
40
|
+
@include govuk-media-query($from: "desktop") {
|
41
|
+
float: left;
|
42
|
+
padding: 0;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.gem-c-layout-super-navigation-header__item-link {
|
47
|
+
display: block;
|
48
|
+
padding: govuk-spacing(3) 0;
|
49
|
+
position: relative;
|
50
|
+
|
51
|
+
@include govuk-media-query($from: "desktop") {
|
52
|
+
padding: govuk-spacing(4);
|
53
|
+
width: auto;
|
54
|
+
}
|
55
|
+
|
56
|
+
&:focus {
|
57
|
+
z-index: 1;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
// Special search link
|
62
|
+
.gem-c-layout-super-navigation-header__item--search {
|
63
|
+
border-bottom: 0;
|
64
|
+
}
|
65
|
+
|
66
|
+
.gem-c-layout-super-navigation-header__item-link--search {
|
67
|
+
@include govuk-media-query($from: "desktop") {
|
68
|
+
background-color: $govuk-link-colour;
|
69
|
+
display: inherit;
|
70
|
+
width: govuk-spacing(4);
|
71
|
+
|
72
|
+
&:hover {
|
73
|
+
background-color: $govuk-link-hover-colour;
|
74
|
+
}
|
75
|
+
|
76
|
+
&:focus {
|
77
|
+
background-color: $govuk-focus-colour;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
.gem-c-layout-super-navigation-header__item-link-text--search {
|
83
|
+
@include govuk-media-query($from: "desktop") {
|
84
|
+
@include govuk-visually-hidden;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
.gem-c-layout-super-navigation-header__item-link-icon--search {
|
89
|
+
display: none;
|
90
|
+
|
91
|
+
@include govuk-media-query($from: "desktop") {
|
92
|
+
display: block;
|
93
|
+
height: $search-icon-size;
|
94
|
+
width: $search-icon-size;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
.gem-c-layout-super-navigation-header__menu-button {
|
99
|
+
@include govuk-font($size: 19, $weight: bold, $line-height: 20px);
|
100
|
+
border-left: 1px solid govuk-colour("mid-grey");
|
101
|
+
border-right: 1px solid govuk-colour("mid-grey");
|
102
|
+
padding: govuk-spacing(4);
|
103
|
+
top: 0;
|
104
|
+
|
105
|
+
&:focus {
|
106
|
+
border-left-color: $govuk-focus-colour;
|
107
|
+
border-right-color: $govuk-focus-colour;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
.js-enabled .gem-c-layout-super-navigation-header__items {
|
112
|
+
display: none;
|
113
|
+
|
114
|
+
@include govuk-media-query($from: "desktop") {
|
115
|
+
display: block;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
.js-enabled .gem-c-layout-super-navigation-header__items--open {
|
120
|
+
display: block;
|
121
|
+
}
|
122
|
+
|
123
|
+
.gem-c-layout-super-navigation-header__dropdown-menu {
|
124
|
+
display: none;
|
125
|
+
}
|
@@ -105,5 +105,5 @@
|
|
105
105
|
</ul>
|
106
106
|
|
107
107
|
<div class="component-markdown">
|
108
|
-
<p class="govuk-body">If you cannot find a suitable component consider extending an existing component or <a href="https://github.com/alphagov/govuk_publishing_components/blob/master/docs/
|
108
|
+
<p class="govuk-body">If you cannot find a suitable component consider extending an existing component or <a href="https://github.com/alphagov/govuk_publishing_components/blob/master/docs/generate-a-new-component.md">creating a new one</a>.</p>
|
109
109
|
</div>
|
@@ -12,9 +12,9 @@
|
|
12
12
|
inverse: inverse,
|
13
13
|
collapse_on_mobile: collapse_on_mobile %>
|
14
14
|
<% end %>
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
%>
|
15
|
+
<% if breadcrumb_selector.priority_breadcrumbs %>
|
16
|
+
<%= render 'govuk_publishing_components/components/step_by_step_nav_header', breadcrumb_selector.priority_breadcrumbs %>
|
17
|
+
<% meta_tag = GovukPublishingComponents::Presenters::MetaTags.new(content_item, local_assigns, request).brexit_priority_breadcrumb_tag %>
|
18
|
+
<meta name="<%= meta_tag.keys.first %>" content="<%= meta_tag.values.first %>">
|
19
|
+
<% end %>
|
20
20
|
</div>
|
@@ -6,15 +6,18 @@
|
|
6
6
|
css_classes = %w(gem-c-details govuk-details)
|
7
7
|
css_classes << (shared_helper.get_margin_bottom)
|
8
8
|
|
9
|
+
details_data_attributes = {}
|
10
|
+
details_data_attributes[:module] = 'govuk-details gem-details'
|
11
|
+
|
9
12
|
data_attributes ||= {}
|
10
|
-
data_attributes[:
|
13
|
+
data_attributes[:details_track_click] = ''
|
11
14
|
%>
|
12
|
-
<%= tag.details class: css_classes, data:
|
13
|
-
|
15
|
+
<%= tag.details class: css_classes, data: details_data_attributes, open: open do %>
|
16
|
+
<%= tag.summary class: "govuk-details__summary", data: data_attributes do %>
|
14
17
|
<span class="govuk-details__summary-text">
|
15
18
|
<%= title %>
|
16
19
|
</span>
|
17
|
-
|
20
|
+
<% end %>
|
18
21
|
<div class="govuk-details__text">
|
19
22
|
<%= yield %>
|
20
23
|
</div>
|