govuk_publishing_components 66.4.2 → 66.6.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/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +0 -22
- data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +83 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +7 -1
- data/app/views/govuk_publishing_components/components/_cards.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +14 -32
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +231 -221
- data/app/views/govuk_publishing_components/components/_published_dates.html.erb +13 -12
- data/app/views/govuk_publishing_components/components/_signup_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/docs/breadcrumbs.yml +8 -17
- data/app/views/govuk_publishing_components/components/docs/cards.yml +35 -0
- data/app/views/govuk_publishing_components/components/docs/cookie_banner.yml +0 -19
- data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +12 -23
- data/app/views/govuk_publishing_components/components/docs/published_dates.yml +0 -6
- data/app/views/govuk_publishing_components/components/docs/signup_link.yml +8 -0
- data/config/locales/en.yml +2 -2
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/axe.d.ts +39 -1
- data/node_modules/axe-core/axe.js +1062 -534
- data/node_modules/axe-core/axe.min.js +2 -2
- data/node_modules/axe-core/gather-internals.js +219 -0
- data/node_modules/axe-core/locales/_template.json +5 -0
- data/node_modules/axe-core/locales/ja.json +1 -0
- data/node_modules/axe-core/locales/{no_NB.json → nb.json} +1 -1
- data/node_modules/axe-core/locales/pt_BR.json +1 -1
- data/node_modules/axe-core/locales/pt_PT.json +1 -1
- data/node_modules/axe-core/locales/zh_CN.json +1 -1
- data/node_modules/axe-core/locales/zh_TW.json +1 -1
- data/node_modules/axe-core/package.json +11 -6
- data/node_modules/axe-core/sri-history.json +4 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab8154e3861817b4b3715d2eea62bb92736ad4bd6fe842774b92aaf677252812
|
|
4
|
+
data.tar.gz: 2ba507170514ffb2c67ea8fc9bd2241c1943688d004c5ae0ce16ef2790b6b5fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e297e668a6c2cce7746b0408d1652b6293a9c737c755c6db89b42912c872428ab74b8ede5423e8c2efc9ac1fffcbc94b29500e648696fb0ea6aa1df337bb9ca
|
|
7
|
+
data.tar.gz: 8a5df50c254dcb946ca52b0d1f0efcb7df2ae1b30abcf100f75bac2c0a1d4e3e3dbfef068ec283bcf0e7379d430c9924d6218e6800196f40c746443b6e2ab26d
|
|
@@ -11,28 +11,6 @@
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.govuk-breadcrumbs--collapse-on-mobile {
|
|
15
|
-
@include govuk-media-query($until: tablet) {
|
|
16
|
-
.govuk-breadcrumbs__list-item {
|
|
17
|
-
padding-top: 14px;
|
|
18
|
-
padding-bottom: 14px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.govuk-breadcrumbs__list-item::before {
|
|
22
|
-
top: 20px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.govuk-breadcrumbs__link::after {
|
|
26
|
-
content: "";
|
|
27
|
-
position: absolute;
|
|
28
|
-
top: 0;
|
|
29
|
-
right: 0;
|
|
30
|
-
left: 0;
|
|
31
|
-
bottom: 0;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
14
|
.gem-c-breadcrumbs[dir="rtl"] {
|
|
37
15
|
text-align: start;
|
|
38
16
|
|
|
@@ -60,6 +60,89 @@
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
.gem-c-cards--auto-layout {
|
|
64
|
+
.gem-c-cards__list {
|
|
65
|
+
container-type: inline-size;
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: row;
|
|
68
|
+
flex-wrap: wrap;
|
|
69
|
+
column-gap: 30px;
|
|
70
|
+
|
|
71
|
+
// pseudo elements form invisible elements to fill in
|
|
72
|
+
// the final row if it is incomplete, or fit below
|
|
73
|
+
&::before,
|
|
74
|
+
&::after {
|
|
75
|
+
content: "";
|
|
76
|
+
height: 0.1px;
|
|
77
|
+
opacity: 0;
|
|
78
|
+
order: 100;
|
|
79
|
+
transform: translateY(-5px);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.gem-c-cards__link {
|
|
84
|
+
&::before {
|
|
85
|
+
top: 27px;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.gem-c-cards__description {
|
|
90
|
+
max-width: none;
|
|
91
|
+
margin: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.gem-c-cards__list::before,
|
|
95
|
+
.gem-c-cards__list::after,
|
|
96
|
+
.gem-c-cards__list-item {
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
width: 100%;
|
|
99
|
+
flex-grow: 1;
|
|
100
|
+
flex-shrink: 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@include govuk-media-query($from: tablet) {
|
|
104
|
+
.gem-c-cards__list::before,
|
|
105
|
+
.gem-c-cards__list::after,
|
|
106
|
+
.gem-c-cards__list-item {
|
|
107
|
+
width: 25%;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@container (width < 560px) {
|
|
111
|
+
.gem-c-cards__list::before,
|
|
112
|
+
.gem-c-cards__list::after,
|
|
113
|
+
.gem-c-cards__list-item {
|
|
114
|
+
width: 30%;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@container (width < 360px) {
|
|
119
|
+
.gem-c-cards__list::before,
|
|
120
|
+
.gem-c-cards__list::after,
|
|
121
|
+
.gem-c-cards__list-item {
|
|
122
|
+
width: 100%;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@include govuk-media-query($from: desktop) {
|
|
128
|
+
@container (width < 660px) {
|
|
129
|
+
.gem-c-cards__list::before,
|
|
130
|
+
.gem-c-cards__list::after,
|
|
131
|
+
.gem-c-cards__list-item {
|
|
132
|
+
width: 31%;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@container (width < 360px) {
|
|
137
|
+
.gem-c-cards__list::before,
|
|
138
|
+
.gem-c-cards__list::after,
|
|
139
|
+
.gem-c-cards__list-item {
|
|
140
|
+
width: 100%;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
63
146
|
.gem-c-cards__list-item {
|
|
64
147
|
border-top: 1px solid $govuk-border-colour;
|
|
65
148
|
padding: govuk-spacing(1) 0 govuk-spacing(4) 0;
|
|
@@ -553,7 +553,9 @@ $search-icon-height: 20px;
|
|
|
553
553
|
|
|
554
554
|
// Ensure the dropdown menu background is offset from the menu height and
|
|
555
555
|
// takes up the full screen width
|
|
556
|
-
.govuk-frontend-supported .gem-c-layout-super-navigation-
|
|
556
|
+
.govuk-frontend-supported .gem-c-layout-super-navigation-header__nav-wrapper {
|
|
557
|
+
position: relative;
|
|
558
|
+
|
|
557
559
|
&::before {
|
|
558
560
|
content: "";
|
|
559
561
|
position: absolute;
|
|
@@ -565,6 +567,10 @@ $search-icon-height: 20px;
|
|
|
565
567
|
}
|
|
566
568
|
}
|
|
567
569
|
|
|
570
|
+
.gem-c-phase-banner-wrapper {
|
|
571
|
+
background: govuk-colour("white");
|
|
572
|
+
}
|
|
573
|
+
|
|
568
574
|
// JS available - styles the links in the dropdown menu
|
|
569
575
|
.gem-c-layout-super-navigation-header__dropdown-list-item {
|
|
570
576
|
box-sizing: border-box;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
|
|
13
13
|
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
|
14
14
|
component_helper.add_class("gem-c-cards")
|
|
15
|
+
component_helper.add_class("gem-c-cards--auto-layout") if columns == "auto"
|
|
15
16
|
%>
|
|
16
17
|
<% if items.present? %>
|
|
17
18
|
<%= tag.div(**component_helper.all_attributes) do %>
|
|
@@ -20,12 +20,10 @@
|
|
|
20
20
|
cookie_preferences_href,
|
|
21
21
|
class: "govuk-link",
|
|
22
22
|
)))
|
|
23
|
-
services_cookies ||= nil
|
|
24
23
|
|
|
25
24
|
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
|
26
25
|
component_helper.set_id(id)
|
|
27
26
|
component_helper.add_class("gem-c-cookie-banner govuk-clearfix govuk-cookie-banner js-banner-wrapper")
|
|
28
|
-
component_helper.add_class("gem-c-cookie-banner--services") if services_cookies
|
|
29
27
|
|
|
30
28
|
component_helper.add_data_attribute({ module: "cookie-banner", nosnippet: "" })
|
|
31
29
|
component_helper.add_role("region")
|
|
@@ -54,38 +52,22 @@
|
|
|
54
52
|
</div>
|
|
55
53
|
</div>
|
|
56
54
|
<div class="js-confirmation-buttons govuk-button-group">
|
|
57
|
-
|
|
58
|
-
<%= render "govuk_publishing_components/components/button", {
|
|
55
|
+
<%= render "govuk_publishing_components/components/button", {
|
|
59
56
|
name: "cookies",
|
|
60
|
-
text:
|
|
61
|
-
data_attributes: {
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
text: t("components.cookie_banner.buttons.accept_cookies"),
|
|
58
|
+
data_attributes: {
|
|
59
|
+
"accept-cookies": "true",
|
|
60
|
+
"cookie-types": "all",
|
|
61
|
+
},
|
|
62
|
+
} %>
|
|
63
|
+
<%= render "govuk_publishing_components/components/button", {
|
|
64
64
|
name: "cookies",
|
|
65
|
-
text:
|
|
66
|
-
data_attributes: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
<% else %>
|
|
72
|
-
<%= render "govuk_publishing_components/components/button", {
|
|
73
|
-
name: "cookies",
|
|
74
|
-
text: t("components.cookie_banner.buttons.accept_cookies"),
|
|
75
|
-
data_attributes: {
|
|
76
|
-
"accept-cookies": "true",
|
|
77
|
-
"cookie-types": "all",
|
|
78
|
-
},
|
|
79
|
-
} %>
|
|
80
|
-
<%= render "govuk_publishing_components/components/button", {
|
|
81
|
-
name: "cookies",
|
|
82
|
-
text: t("components.cookie_banner.buttons.reject_cookies"),
|
|
83
|
-
data_attributes: {
|
|
84
|
-
"reject-cookies": "true",
|
|
85
|
-
},
|
|
86
|
-
} %>
|
|
87
|
-
<a class="govuk-link" href="<%= cookie_preferences_href %>"><%= t("components.cookie_banner.buttons.view_cookies") %></a>
|
|
88
|
-
<% end %>
|
|
65
|
+
text: t("components.cookie_banner.buttons.reject_cookies"),
|
|
66
|
+
data_attributes: {
|
|
67
|
+
"reject-cookies": "true",
|
|
68
|
+
},
|
|
69
|
+
} %>
|
|
70
|
+
<a class="govuk-link" href="<%= cookie_preferences_href %>"><%= t("components.cookie_banner.buttons.view_cookies") %></a>
|
|
89
71
|
</div>
|
|
90
72
|
<div hidden class="js-hide-button govuk-button-group">
|
|
91
73
|
<%
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<%
|
|
2
2
|
emergency_banner ||= nil
|
|
3
3
|
global_banner ||= nil
|
|
4
|
+
phase_banner ||= nil
|
|
4
5
|
html_lang ||= "en"
|
|
5
6
|
homepage ||= false
|
|
6
7
|
layout_helper = GovukPublishingComponents::Presenters::PublicLayoutHelper.new(local_assigns)
|
|
@@ -90,7 +91,8 @@
|
|
|
90
91
|
<% I18n.with_locale(:en) do %>
|
|
91
92
|
<%= render "govuk_publishing_components/components/layout_super_navigation_header", {
|
|
92
93
|
homepage:,
|
|
93
|
-
logo_link
|
|
94
|
+
logo_link:,
|
|
95
|
+
phase_banner:,
|
|
94
96
|
} %>
|
|
95
97
|
<% end %>
|
|
96
98
|
<% end %>
|