govuk_publishing_components 23.12.3 → 24.0.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/images/govuk_publishing_components/take-action-amber.svg +4 -0
- data/app/assets/images/govuk_publishing_components/take-action-green.svg +4 -0
- data/app/assets/images/govuk_publishing_components/take-action-red.svg +4 -0
- data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +0 -4
- data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +44 -39
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +34 -17
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +14 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +35 -44
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +112 -47
- data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +8 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +0 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss +2 -2
- data/app/models/govuk_publishing_components/component_doc.rb +1 -1
- data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +2 -8
- data/app/views/govuk_publishing_components/components/_document_list.html.erb +12 -2
- data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +9 -4
- data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb +21 -0
- data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +65 -1
- data/app/views/govuk_publishing_components/components/docs/document_list.yml +50 -7
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +3 -3
- data/app/views/govuk_publishing_components/components/docs/layout_header.yml +11 -0
- data/app/views/govuk_publishing_components/components/docs/meta_tags.yml +99 -1
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +9 -4
- data/config/initializers/assets.rb +3 -1
- data/config/locales/cy.yml +6 -1
- data/config/locales/en.yml +8 -3
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +183 -2
- data/lib/govuk_publishing_components/presenters/meta_tags.rb +2 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/govuk/all.js +58 -1
- data/node_modules/govuk-frontend/govuk/components/_all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/fixtures.json +25 -10
- data/node_modules/govuk-frontend/govuk/components/back-link/fixtures.json +12 -6
- data/node_modules/govuk-frontend/govuk/components/back-link/macro-options.json +4 -4
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/fixtures.json +34 -13
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/macro-options.json +1 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/template.njk +2 -2
- data/node_modules/govuk-frontend/govuk/components/button/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/button/fixtures.json +74 -31
- data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +1 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +1 -1
- data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +85 -15
- data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/checkboxes/fixtures.json +145 -52
- data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +51 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +425 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +132 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/template.njk +63 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/fixtures.json +84 -34
- data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/date-input/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/details/fixtures.json +35 -15
- data/node_modules/govuk-frontend/govuk/components/error-message/fixtures.json +21 -10
- data/node_modules/govuk-frontend/govuk/components/error-message/macro-options.json +1 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/_index.scss +2 -12
- data/node_modules/govuk-frontend/govuk/components/error-summary/fixtures.json +86 -25
- data/node_modules/govuk-frontend/govuk/components/fieldset/fixtures.json +20 -10
- data/node_modules/govuk-frontend/govuk/components/file-upload/fixtures.json +60 -13
- data/node_modules/govuk-frontend/govuk/components/footer/fixtures.json +37 -18
- data/node_modules/govuk-frontend/govuk/components/footer/macro-options.json +8 -5
- data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +36 -18
- data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/header/template.njk +4 -4
- data/node_modules/govuk-frontend/govuk/components/hint/fixtures.json +17 -8
- data/node_modules/govuk-frontend/govuk/components/input/fixtures.json +130 -40
- data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/inset-text/fixtures.json +17 -8
- data/node_modules/govuk-frontend/govuk/components/label/fixtures.json +20 -11
- data/node_modules/govuk-frontend/govuk/components/label/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/notification-banner/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/_index.scss +89 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/fixtures.json +212 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/macro-options.json +68 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +61 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/template.njk +47 -0
- data/node_modules/govuk-frontend/govuk/components/panel/fixtures.json +30 -13
- data/node_modules/govuk-frontend/govuk/components/phase-banner/fixtures.json +20 -9
- data/node_modules/govuk-frontend/govuk/components/radios/fixtures.json +167 -50
- data/node_modules/govuk-frontend/govuk/components/select/fixtures.json +97 -18
- data/node_modules/govuk-frontend/govuk/components/select/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/skip-link/fixtures.json +21 -9
- data/node_modules/govuk-frontend/govuk/components/summary-list/fixtures.json +118 -25
- data/node_modules/govuk-frontend/govuk/components/table/_index.scss +21 -0
- data/node_modules/govuk-frontend/govuk/components/table/fixtures.json +92 -22
- data/node_modules/govuk-frontend/govuk/components/table/macro-options.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/tabs/fixtures.json +75 -18
- data/node_modules/govuk-frontend/govuk/components/tabs/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/tag/fixtures.json +28 -14
- data/node_modules/govuk-frontend/govuk/components/textarea/fixtures.json +68 -17
- data/node_modules/govuk-frontend/govuk/components/warning-text/fixtures.json +19 -14
- data/node_modules/govuk-frontend/govuk/helpers/_links.scss +94 -0
- data/node_modules/govuk-frontend/govuk/objects/_all.scss +1 -0
- data/node_modules/govuk-frontend/govuk/objects/_button-group.scss +94 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-applied.scss +9 -0
- data/node_modules/govuk-frontend/govuk/settings/_typography-font.scss +3 -0
- data/node_modules/govuk-frontend/package.json +1 -1
- metadata +20 -18
- data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small-focus.svg +0 -4
- data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small.svg +0 -4
- data/app/assets/javascripts/govuk_publishing_components/components/header.js +0 -8
- data/app/assets/javascripts/govuk_publishing_components/lib/auto-track-event.js +0 -31
- data/app/assets/stylesheets/govuk_publishing_components/components/_chevron-banner.scss +0 -138
- data/app/assets/stylesheets/govuk_publishing_components/components/_list.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss +0 -27
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_back-arrow.scss +0 -13
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_clearfix.scss +0 -8
- data/app/views/govuk_publishing_components/components/_chevron_banner.html.erb +0 -19
- data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +0 -85
- data/app/views/govuk_publishing_components/components/_translation-nav.html.erb +0 -33
- data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_related_links.html.erb +0 -6
- data/app/views/govuk_publishing_components/components/docs/chevron_banner.yml +0 -33
- data/app/views/govuk_publishing_components/components/docs/subscription-links.yml +0 -103
- data/app/views/govuk_publishing_components/components/docs/translation-nav.yml +0 -139
@@ -1,8 +1,7 @@
|
|
1
|
-
$stroke-width:
|
2
|
-
$
|
3
|
-
$number-circle-size: 26px;
|
1
|
+
$stroke-width: 1px;
|
2
|
+
$number-circle-size: 30px;
|
4
3
|
$number-circle-size-large: 35px;
|
5
|
-
$top-border: solid
|
4
|
+
$top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
|
6
5
|
|
7
6
|
@mixin step-nav-vertical-line ($line-style: solid) {
|
8
7
|
content: "";
|
@@ -16,13 +15,12 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
16
15
|
|
17
16
|
@mixin step-nav-line-position {
|
18
17
|
left: 0;
|
19
|
-
margin-left: ($number-circle-size / 2) - ($stroke-width / 2);
|
18
|
+
margin-left: em(($number-circle-size / 2) - ($stroke-width / 2), 16);
|
20
19
|
}
|
21
20
|
|
22
21
|
@mixin step-nav-line-position-large {
|
23
22
|
left: 0;
|
24
|
-
margin-left: ($number-circle-size-large / 2) - ($stroke-width
|
25
|
-
border-width: $stroke-width-large;
|
23
|
+
margin-left: em(($number-circle-size-large / 2) - ($stroke-width / 2), 16);
|
26
24
|
}
|
27
25
|
|
28
26
|
// custom mixin as govuk-font does undesirable things at different breakpoints
|
@@ -40,6 +38,13 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
40
38
|
}
|
41
39
|
}
|
42
40
|
|
41
|
+
// Adds a focus state for the chevron icon so that it turns black on button focus
|
42
|
+
@mixin step-nav-chevron-focus-state {
|
43
|
+
.gem-c-step-nav__chevron-stroke {
|
44
|
+
stroke: govuk-colour("black");
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
43
48
|
.gem-c-step-nav {
|
44
49
|
margin-bottom: govuk-spacing(6);
|
45
50
|
|
@@ -56,7 +61,6 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
56
61
|
|
57
62
|
.gem-c-step-nav__controls {
|
58
63
|
padding: 3px 3px 0 0;
|
59
|
-
text-align: right;
|
60
64
|
}
|
61
65
|
|
62
66
|
.gem-c-step-nav__button {
|
@@ -78,14 +82,29 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
78
82
|
}
|
79
83
|
|
80
84
|
.gem-c-step-nav__button--title {
|
81
|
-
@include step-nav-font(19, $weight: bold, $line-height: 1.
|
85
|
+
@include step-nav-font(19, $weight: bold, $line-height: 1.2);
|
82
86
|
display: inline-block;
|
83
|
-
padding: 0;
|
87
|
+
padding: govuk-spacing(1) 0 0;
|
84
88
|
text-align: left;
|
85
89
|
color: govuk-colour("black");
|
90
|
+
width: 100%;
|
86
91
|
|
87
92
|
.gem-c-step-nav--large & {
|
88
93
|
@include step-nav-font(19, $tablet-size: 24, $weight: bold, $line-height: 1.4);
|
94
|
+
|
95
|
+
@include govuk-media_query($from: tablet) {
|
96
|
+
padding-top: govuk-spacing(2);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
&:focus {
|
101
|
+
box-shadow: 0 -4px govuk-colour("black");
|
102
|
+
|
103
|
+
.gem-c-step-nav__toggle-link {
|
104
|
+
color: govuk-colour("black");
|
105
|
+
}
|
106
|
+
|
107
|
+
@include step-nav-chevron-focus-state;
|
89
108
|
}
|
90
109
|
}
|
91
110
|
|
@@ -93,12 +112,53 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
93
112
|
@include step-nav-font(14, $line-height: 1);
|
94
113
|
position: relative;
|
95
114
|
z-index: 1; // this and relative position stops focus outline underlap with border of accordion
|
96
|
-
|
97
|
-
|
115
|
+
margin: .5em 0 1.5em;
|
116
|
+
padding: 0 0 govuk-spacing(1);
|
117
|
+
|
118
|
+
&:hover .gem-c-step-nav__button-text {
|
119
|
+
text-decoration: underline;
|
120
|
+
}
|
98
121
|
|
99
122
|
.gem-c-step-nav--large & {
|
100
123
|
@include step-nav-font(14, $tablet-size: 16, $line-height: 1);
|
101
124
|
}
|
125
|
+
|
126
|
+
&:focus {
|
127
|
+
@include step-nav-chevron-focus-state;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
.gem-c-step-nav__title-text {
|
132
|
+
display: block;
|
133
|
+
margin-bottom: govuk-spacing(1);
|
134
|
+
}
|
135
|
+
|
136
|
+
.gem-c-step-nav__chevron {
|
137
|
+
display: inline-block;
|
138
|
+
vertical-align: middle;
|
139
|
+
margin-left: em(5, 14);
|
140
|
+
|
141
|
+
.gem-c-step-nav--large & {
|
142
|
+
margin-left: em(5, 16);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
.gem-c-step-nav__button-text {
|
147
|
+
display: inline-block;
|
148
|
+
text-align: left;
|
149
|
+
min-width: em(35, 14);
|
150
|
+
|
151
|
+
.gem-c-step-nav--large & {
|
152
|
+
min-width: em(40, 16);
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
.gem-c-step-nav__button-text--all {
|
157
|
+
min-width: em(87, 14);
|
158
|
+
|
159
|
+
.gem-c-step-nav--large & {
|
160
|
+
min-width: em(100, 16);
|
161
|
+
}
|
102
162
|
}
|
103
163
|
|
104
164
|
.gem-c-step-nav__steps {
|
@@ -108,23 +168,23 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
108
168
|
|
109
169
|
.gem-c-step-nav__step {
|
110
170
|
position: relative;
|
111
|
-
padding-left: govuk-spacing(6) + govuk-spacing(3);
|
171
|
+
padding-left: em(govuk-spacing(6) + govuk-spacing(3), 16);
|
112
172
|
list-style: none;
|
113
173
|
|
114
174
|
// line down the side of a step
|
115
175
|
&:after {
|
116
176
|
@include step-nav-vertical-line;
|
117
177
|
@include step-nav-line-position;
|
118
|
-
top: govuk-spacing(3);
|
178
|
+
top: em(govuk-spacing(3), 16);
|
119
179
|
}
|
120
180
|
|
121
181
|
.gem-c-step-nav--large & {
|
122
182
|
@include govuk-media-query($from: tablet) {
|
123
|
-
padding-left: govuk-spacing(9);
|
183
|
+
padding-left: em(govuk-spacing(9), 16);
|
124
184
|
|
125
185
|
&:after { // stylelint-disable-line max-nesting-depth
|
126
186
|
@include step-nav-line-position-large;
|
127
|
-
top: govuk-spacing(6);
|
187
|
+
top: em(govuk-spacing(6), 16);
|
128
188
|
}
|
129
189
|
}
|
130
190
|
}
|
@@ -158,7 +218,6 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
158
218
|
&:before {
|
159
219
|
margin-left: $number-circle-size-large / 4;
|
160
220
|
width: $number-circle-size-large / 2;
|
161
|
-
border-width: $stroke-width-large;
|
162
221
|
}
|
163
222
|
|
164
223
|
&:after {
|
@@ -181,10 +240,10 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
181
240
|
box-sizing: border-box;
|
182
241
|
position: absolute;
|
183
242
|
z-index: 5;
|
184
|
-
top:
|
243
|
+
top: 3px;
|
185
244
|
left: 0;
|
186
|
-
width: $number-circle-size;
|
187
|
-
height: $number-circle-size;
|
245
|
+
width: em($number-circle-size, 16);
|
246
|
+
height: em($number-circle-size, 16);
|
188
247
|
color: govuk-colour("black");
|
189
248
|
background: govuk-colour("white");
|
190
249
|
border-radius: 100px;
|
@@ -192,31 +251,44 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
192
251
|
|
193
252
|
.gem-c-step-nav--large & {
|
194
253
|
@include govuk-media-query($from: tablet) {
|
195
|
-
top:
|
196
|
-
width: $number-circle-size-large;
|
197
|
-
height: $number-circle-size-large;
|
254
|
+
top: 11px;
|
255
|
+
width: em($number-circle-size-large, 19);
|
256
|
+
height: em($number-circle-size-large, 19);
|
198
257
|
}
|
199
258
|
}
|
200
259
|
}
|
201
260
|
|
202
261
|
.gem-c-step-nav__circle--number {
|
203
|
-
@include step-nav-font(16, $weight: bold, $line-height:
|
262
|
+
@include step-nav-font(16, $weight: bold, $line-height: 29px);
|
204
263
|
border: solid $stroke-width govuk-colour("mid-grey", $legacy: "grey-2");
|
205
264
|
|
206
265
|
.gem-c-step-nav--large & {
|
207
|
-
@include step-nav-font(16, $tablet-size: 19, $weight: bold, $line-height:
|
266
|
+
@include step-nav-font(16, $tablet-size: 19, $weight: bold, $line-height: 25px, $tablet-line-height: 34px);
|
267
|
+
}
|
208
268
|
|
209
|
-
|
210
|
-
|
269
|
+
.gem-c-step-nav__step--active & {
|
270
|
+
background-color: govuk-colour("black");
|
271
|
+
|
272
|
+
.gem-c-step-nav__circle-background {
|
273
|
+
text-shadow: none;
|
274
|
+
color: govuk-colour("white");
|
211
275
|
}
|
212
276
|
}
|
213
277
|
}
|
214
278
|
|
215
279
|
.gem-c-step-nav__circle--logic {
|
216
|
-
@include step-nav-font(
|
280
|
+
@include step-nav-font(19, $weight: bold, $line-height: 28px);
|
281
|
+
left: 3px;
|
282
|
+
width: em($number-circle-size, 19);
|
283
|
+
height: em($number-circle-size, 19);
|
217
284
|
|
218
285
|
.gem-c-step-nav--large & {
|
219
|
-
@include step-nav-font(
|
286
|
+
@include step-nav-font(19, $tablet-size: 24, $weight: bold, $line-height: 28px, $tablet-line-height: 34px);
|
287
|
+
|
288
|
+
@include govuk-media-query($from: tablet) {
|
289
|
+
width: em($number-circle-size-large, 24);
|
290
|
+
height: em($number-circle-size-large, 24);
|
291
|
+
}
|
220
292
|
}
|
221
293
|
}
|
222
294
|
|
@@ -240,21 +312,19 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
240
312
|
}
|
241
313
|
|
242
314
|
.gem-c-step-nav__header {
|
243
|
-
padding: govuk-spacing(3) 0;
|
244
315
|
border-top: $top-border;
|
316
|
+
padding: govuk-spacing(1) 0 govuk-spacing(6);
|
245
317
|
|
246
|
-
.gem-c-step-nav--
|
247
|
-
|
318
|
+
.gem-c-step-nav--large & {
|
319
|
+
padding-top: govuk-spacing(2);
|
248
320
|
}
|
249
321
|
|
250
|
-
.
|
251
|
-
|
252
|
-
|
322
|
+
.js-enabled & {
|
323
|
+
padding: 0;
|
324
|
+
}
|
253
325
|
|
254
|
-
|
255
|
-
|
256
|
-
}
|
257
|
-
}
|
326
|
+
.gem-c-step-nav--active & {
|
327
|
+
cursor: pointer;
|
258
328
|
}
|
259
329
|
|
260
330
|
&:hover {
|
@@ -263,16 +333,10 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
263
333
|
color: $govuk-link-colour;
|
264
334
|
}
|
265
335
|
|
266
|
-
.gem-c-step-
|
336
|
+
.gem-c-step-nav__button-text {
|
267
337
|
text-decoration: underline;
|
268
338
|
}
|
269
339
|
}
|
270
|
-
|
271
|
-
.gem-c-step-nav--large & {
|
272
|
-
@include govuk-media-query($from: tablet) {
|
273
|
-
padding: govuk-spacing(6) 0;
|
274
|
-
}
|
275
|
-
}
|
276
340
|
}
|
277
341
|
|
278
342
|
.gem-c-step-nav__title {
|
@@ -290,6 +354,7 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
290
354
|
display: block;
|
291
355
|
color: $govuk-link-colour;
|
292
356
|
text-transform: capitalize;
|
357
|
+
padding-bottom: govuk-spacing(6);
|
293
358
|
|
294
359
|
.gem-c-step-nav--large & {
|
295
360
|
@include step-nav-font(14, $tablet-size: 16, $line-height: 1.2);
|
@@ -299,6 +364,7 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
299
364
|
.gem-c-step-nav__panel {
|
300
365
|
@include govuk-text-colour;
|
301
366
|
@include step-nav-font(16);
|
367
|
+
padding-bottom: govuk-spacing(5);
|
302
368
|
|
303
369
|
.gem-c-step-nav--large & {
|
304
370
|
@include step-nav-font(16, $tablet-size: 19);
|
@@ -399,7 +465,6 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
399
465
|
&:before {
|
400
466
|
left: -(govuk-spacing(9));
|
401
467
|
margin-left: ($number-circle-size-large / 2);
|
402
|
-
height: $stroke-width-large;
|
403
468
|
}
|
404
469
|
}
|
405
470
|
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
.gem-c-success-alert {
|
2
|
-
color: $
|
3
|
-
padding:
|
4
|
-
border: $
|
2
|
+
color: $govuk-text-colour;
|
3
|
+
padding: govuk-spacing(3);
|
4
|
+
border: $govuk-border-width-narrow solid $govuk-success-colour;
|
5
5
|
@include govuk-responsive-margin(8, "bottom");
|
6
6
|
|
7
7
|
@include govuk-media-query($from: tablet) {
|
8
|
-
padding:
|
9
|
-
border-width: $
|
8
|
+
padding: govuk-spacing(4);
|
9
|
+
border-width: $govuk-border-width;
|
10
10
|
}
|
11
11
|
}
|
12
12
|
|
@@ -17,10 +17,10 @@
|
|
17
17
|
|
18
18
|
.gem-c-success-summary__title {
|
19
19
|
margin-top: 0;
|
20
|
-
margin-bottom:
|
20
|
+
margin-bottom: govuk-spacing(3);
|
21
21
|
|
22
22
|
@include govuk-media-query($from: tablet) {
|
23
|
-
margin-bottom:
|
23
|
+
margin-bottom: govuk-spacing(4);
|
24
24
|
}
|
25
25
|
|
26
26
|
@include govuk-font(24, $weight: bold);
|
@@ -32,5 +32,5 @@
|
|
32
32
|
}
|
33
33
|
|
34
34
|
.gem-c-success-alert:focus {
|
35
|
-
outline: $
|
35
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
36
36
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
$grey-2: #bfc1c3;
|
2
2
|
$white: #ffffff;
|
3
3
|
$number-circle-size: 35px;
|
4
|
-
$stroke-width:
|
4
|
+
$stroke-width: 1px;
|
5
5
|
|
6
6
|
.gem-c-step-nav:not(.gem-c-step-nav--large),
|
7
7
|
.gem-c-step-nav__controls,
|
@@ -63,7 +63,7 @@ $stroke-width: 3px;
|
|
63
63
|
}
|
64
64
|
|
65
65
|
.gem-c-step-nav__circle--number {
|
66
|
-
border: solid
|
66
|
+
border: solid 1px $grey-2;
|
67
67
|
}
|
68
68
|
|
69
69
|
.gem-c-step-nav__step,
|
@@ -69,7 +69,7 @@ module GovukPublishingComponents
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def github_search_url
|
72
|
-
params = { q: "org:alphagov
|
72
|
+
params = { q: "org:alphagov components/components/#{id}", type: "Code" }
|
73
73
|
"https://github.com/search?#{params.to_query}"
|
74
74
|
end
|
75
75
|
|
@@ -2,12 +2,6 @@
|
|
2
2
|
<% shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns) %>
|
3
3
|
|
4
4
|
<div class="gem-c-contextual-sidebar">
|
5
|
-
<% if navigation.show_brexit_related_links? && navigation.step_by_step_count.zero? %>
|
6
|
-
<%= render 'govuk_publishing_components/components/contextual_sidebar/brexit_related_links' %>
|
7
|
-
<% elsif navigation.step_by_step_count.zero? && !navigation.transition_countdown_exception? %>
|
8
|
-
<%= render 'govuk_publishing_components/components/contextual_sidebar/brexit_cta' %>
|
9
|
-
<% end %>
|
10
|
-
|
11
5
|
<% if navigation.content_tagged_to_a_reasonable_number_of_step_by_steps? %>
|
12
6
|
<%# Rendering step by step related items because there are a few but not too many of them %>
|
13
7
|
<%= render 'govuk_publishing_components/components/step_by_step_nav_related', links: navigation.step_nav_helper.related_links %>
|
@@ -30,7 +24,7 @@
|
|
30
24
|
} %>
|
31
25
|
<% end %>
|
32
26
|
|
33
|
-
<% if navigation.
|
34
|
-
<%= render 'govuk_publishing_components/components/contextual_sidebar/
|
27
|
+
<% if navigation.show_brexit_cta? || navigation.show_brexit_related_links? %>
|
28
|
+
<%= render 'govuk_publishing_components/components/contextual_sidebar/brexit_cta' %>
|
35
29
|
<% end %>
|
36
30
|
</div>
|
@@ -5,6 +5,7 @@
|
|
5
5
|
classes << " gem-c-document-list--top-margin" if local_assigns[:margin_top]
|
6
6
|
classes << " gem-c-document-list--bottom-margin" if local_assigns[:margin_bottom]
|
7
7
|
classes << " gem-c-document-list--no-underline" if local_assigns[:remove_underline]
|
8
|
+
classes << " gem-c-document-list--no-top-border" if local_assigns[:remove_top_border]
|
8
9
|
|
9
10
|
within_multitype_list ||= false
|
10
11
|
within_multitype_list_class = " gem-c-document-list__multi-list" if within_multitype_list
|
@@ -28,12 +29,21 @@
|
|
28
29
|
item_classes = "gem-c-document-list__item-title #{brand_helper.color_class} #{title_with_context_class if item[:link][:context]}"
|
29
30
|
|
30
31
|
if item[:link][:path]
|
32
|
+
rel = [
|
33
|
+
"external",
|
34
|
+
"nofollow",
|
35
|
+
"noopener",
|
36
|
+
"noreferrer",
|
37
|
+
"opener",
|
38
|
+
].include?(item[:link][:rel]) ? item[:link][:rel] : nil
|
39
|
+
|
31
40
|
link_to(
|
32
41
|
item[:link][:text],
|
33
42
|
item[:link][:path],
|
34
43
|
data: item[:link][:data_attributes],
|
35
44
|
class: "#{item_classes} gem-c-document-list__item-link",
|
36
|
-
lang: item[:link][:locale].presence
|
45
|
+
lang: item[:link][:locale].presence,
|
46
|
+
rel: rel,
|
37
47
|
)
|
38
48
|
else
|
39
49
|
content_tag(
|
@@ -50,7 +60,7 @@
|
|
50
60
|
<% end %>
|
51
61
|
|
52
62
|
<% if item[:link][:description] %>
|
53
|
-
<p class="gem-c-document-list__item-description" ><%= item[:link][:description] %></p>
|
63
|
+
<p class="gem-c-document-list__item-description <%= "gem-c-document-list__item-description--full-size" if item[:link][:full_size_description] %>"><%= item[:link][:description] %></p>
|
54
64
|
<% end %>
|
55
65
|
|
56
66
|
<% if item[:metadata] %>
|