katalyst-govuk-formbuilder 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/builds/katalyst/govuk/formbuilder.css +30 -1
- data/lib/katalyst/govuk/formbuilder/version.rb +1 -1
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/_all.scss +2 -1
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/back-link/_index.scss +8 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/breadcrumbs/_index.scss +12 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/button/_index.scss +41 -3
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/exit-this-page/_exit-this-page.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/exit-this-page/_index.scss +97 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_govuk-frontend-version.scss +1 -1
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_visually-hidden.scss +12 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_template.scss +20 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4255667e305b3281cd8cc212d66cb9f3dd3fb90217ad4610854d9c5eb99bda8
|
4
|
+
data.tar.gz: 186cfd97c4994d09a463f40dbd15747dd249a6fca3af391117bdcabb03bb6d03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 565c0b92dabe9090c904f5095faee594fb792591c3b435953d28cfc8ea5b10103c4273dfcf9f320234469fc5ce8eab79e93be13ad2660c74e8e671773830ac9f
|
7
|
+
data.tar.gz: f4172456fee33876936ea05efb3b2dd3ed6077b3abf4b6cfcc80ecd8babfd8dfe116267ff59f89b9d14000ec765f8f51119b8b32d7e72da959d4fa8f5b4aa758
|
@@ -1,5 +1,6 @@
|
|
1
|
+
@charset "UTF-8";
|
1
2
|
:root {
|
2
|
-
--govuk-frontend-version: "4.
|
3
|
+
--govuk-frontend-version: "4.7.0";
|
3
4
|
}
|
4
5
|
|
5
6
|
.govuk-link {
|
@@ -982,6 +983,14 @@
|
|
982
983
|
-moz-text-size-adjust: 100%;
|
983
984
|
text-size-adjust: 100%;
|
984
985
|
}
|
986
|
+
@supports (position: -webkit-sticky) or (position: sticky) {
|
987
|
+
.govuk-template {
|
988
|
+
scroll-padding-top: 60px;
|
989
|
+
}
|
990
|
+
.govuk-template:not(:has(.govuk-exit-this-page)) {
|
991
|
+
scroll-padding-top: 0;
|
992
|
+
}
|
993
|
+
}
|
985
994
|
@media screen {
|
986
995
|
.govuk-template {
|
987
996
|
overflow-y: scroll;
|
@@ -1169,6 +1178,20 @@
|
|
1169
1178
|
background-color: #d4351c;
|
1170
1179
|
}
|
1171
1180
|
|
1181
|
+
.govuk-button--inverse {
|
1182
|
+
background-color: #ffffff;
|
1183
|
+
box-shadow: 0 2px 0 #144e81;
|
1184
|
+
}
|
1185
|
+
.govuk-button--inverse, .govuk-button--inverse:link, .govuk-button--inverse:visited, .govuk-button--inverse:active, .govuk-button--inverse:hover {
|
1186
|
+
color: #1d70b8;
|
1187
|
+
}
|
1188
|
+
.govuk-button--inverse:hover {
|
1189
|
+
background-color: #e8f1f8;
|
1190
|
+
}
|
1191
|
+
.govuk-button--inverse:hover[disabled] {
|
1192
|
+
background-color: #ffffff;
|
1193
|
+
}
|
1194
|
+
|
1172
1195
|
.govuk-button--start {
|
1173
1196
|
font-weight: 700;
|
1174
1197
|
font-size: 18px;
|
@@ -2676,6 +2699,12 @@
|
|
2676
2699
|
border: 0 !important;
|
2677
2700
|
white-space: nowrap !important;
|
2678
2701
|
}
|
2702
|
+
.govuk-visually-hidden:before {
|
2703
|
+
content: " ";
|
2704
|
+
}
|
2705
|
+
.govuk-visually-hidden:after {
|
2706
|
+
content: " ";
|
2707
|
+
}
|
2679
2708
|
|
2680
2709
|
.govuk-visually-hidden-focusable {
|
2681
2710
|
position: absolute !important;
|
@@ -11,11 +11,12 @@
|
|
11
11
|
@import "details/index";
|
12
12
|
@import "error-message/index";
|
13
13
|
@import "error-summary/index";
|
14
|
+
@import "exit-this-page/index";
|
14
15
|
@import "fieldset/index";
|
15
16
|
@import "file-upload/index";
|
16
17
|
@import "footer/index";
|
17
|
-
@import "hint/index";
|
18
18
|
@import "header/index";
|
19
|
+
@import "hint/index";
|
19
20
|
@import "input/index";
|
20
21
|
@import "inset-text/index";
|
21
22
|
@import "label/index";
|
@@ -144,4 +144,16 @@
|
|
144
144
|
}
|
145
145
|
}
|
146
146
|
}
|
147
|
+
|
148
|
+
.govuk-breadcrumbs--inverse {
|
149
|
+
color: govuk-colour("white");
|
150
|
+
|
151
|
+
.govuk-breadcrumbs__link {
|
152
|
+
@include govuk-link-style-inverse;
|
153
|
+
}
|
154
|
+
|
155
|
+
.govuk-breadcrumbs__list-item:before {
|
156
|
+
border-color: currentcolor;
|
157
|
+
}
|
158
|
+
}
|
147
159
|
}
|
@@ -18,21 +18,27 @@ $govuk-button-text-colour: govuk-colour("white") !default;
|
|
18
18
|
|
19
19
|
@include govuk-exports("govuk/component/button") {
|
20
20
|
$govuk-button-colour: $govuk-button-background-colour;
|
21
|
+
$govuk-button-text-colour: $govuk-button-text-colour;
|
21
22
|
$govuk-button-hover-colour: govuk-shade($govuk-button-colour, 20%);
|
22
23
|
$govuk-button-shadow-colour: govuk-shade($govuk-button-colour, 60%);
|
23
|
-
$govuk-button-text-colour: $govuk-button-text-colour;
|
24
24
|
|
25
25
|
// Secondary button variables
|
26
26
|
$govuk-secondary-button-colour: govuk-colour("light-grey", $legacy: "grey-3");
|
27
|
+
$govuk-secondary-button-text-colour: govuk-colour("black");
|
27
28
|
$govuk-secondary-button-hover-colour: govuk-shade($govuk-secondary-button-colour, 10%);
|
28
29
|
$govuk-secondary-button-shadow-colour: govuk-shade($govuk-secondary-button-colour, 40%);
|
29
|
-
$govuk-secondary-button-text-colour: govuk-colour("black");
|
30
30
|
|
31
31
|
// Warning button variables
|
32
32
|
$govuk-warning-button-colour: govuk-colour("red");
|
33
|
+
$govuk-warning-button-text-colour: govuk-colour("white");
|
33
34
|
$govuk-warning-button-hover-colour: govuk-shade($govuk-warning-button-colour, 20%);
|
34
35
|
$govuk-warning-button-shadow-colour: govuk-shade($govuk-warning-button-colour, 60%);
|
35
|
-
|
36
|
+
|
37
|
+
// Inverse button variables
|
38
|
+
$govuk-inverse-button-colour: govuk-colour("white");
|
39
|
+
$govuk-inverse-button-text-colour: govuk-colour("blue");
|
40
|
+
$govuk-inverse-button-hover-colour: govuk-tint($govuk-inverse-button-text-colour, 90%);
|
41
|
+
$govuk-inverse-button-shadow-colour: govuk-shade($govuk-inverse-button-text-colour, 30%);
|
36
42
|
|
37
43
|
// Because the shadow (s0) is visually 'part of' the button, we need to reduce
|
38
44
|
// the height of the button to compensate by adjusting its padding (s1) and
|
@@ -251,6 +257,38 @@ $govuk-button-text-colour: govuk-colour("white") !default;
|
|
251
257
|
}
|
252
258
|
}
|
253
259
|
|
260
|
+
.govuk-button--inverse {
|
261
|
+
background-color: $govuk-inverse-button-colour;
|
262
|
+
box-shadow: 0 $button-shadow-size 0 $govuk-inverse-button-shadow-colour;
|
263
|
+
|
264
|
+
&,
|
265
|
+
&:link,
|
266
|
+
&:visited,
|
267
|
+
&:active,
|
268
|
+
&:hover {
|
269
|
+
color: $govuk-inverse-button-text-colour;
|
270
|
+
}
|
271
|
+
|
272
|
+
// alphagov/govuk_template includes a specific a:link:focus selector
|
273
|
+
// designed to make unvisited links a slightly darker blue when focussed, so
|
274
|
+
// we need to override the text colour for that combination of selectors so
|
275
|
+
// so that unvisited links styled as buttons do not end up with dark blue
|
276
|
+
// text when focussed.
|
277
|
+
@include _govuk-compatibility(govuk_template) {
|
278
|
+
&:link:focus {
|
279
|
+
color: $govuk-inverse-button-text-colour;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
|
283
|
+
&:hover {
|
284
|
+
background-color: $govuk-inverse-button-hover-colour;
|
285
|
+
|
286
|
+
&[disabled] {
|
287
|
+
background-color: $govuk-inverse-button-colour;
|
288
|
+
}
|
289
|
+
}
|
290
|
+
}
|
291
|
+
|
254
292
|
.govuk-button--start {
|
255
293
|
@include govuk-typography-weight-bold;
|
256
294
|
@include govuk-typography-responsive($size: 24, $override-line-height: 1);
|
@@ -0,0 +1,97 @@
|
|
1
|
+
@import "../button/index";
|
2
|
+
|
3
|
+
@include govuk-exports("govuk/component/exit-this-page") {
|
4
|
+
$indicator-size: .75em;
|
5
|
+
|
6
|
+
.govuk-exit-this-page {
|
7
|
+
@include govuk-responsive-margin(8, "bottom");
|
8
|
+
position: -webkit-sticky;
|
9
|
+
position: sticky;
|
10
|
+
z-index: 1000;
|
11
|
+
top: 0;
|
12
|
+
left: 0;
|
13
|
+
width: 100%;
|
14
|
+
|
15
|
+
@include govuk-media-query($from: tablet) {
|
16
|
+
display: inline-block;
|
17
|
+
right: 0;
|
18
|
+
left: auto;
|
19
|
+
width: auto;
|
20
|
+
float: right;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
.govuk-exit-this-page__button {
|
25
|
+
margin-bottom: 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
.govuk-exit-this-page__indicator {
|
29
|
+
@include govuk-responsive-padding(2);
|
30
|
+
display: none;
|
31
|
+
padding-bottom: 0;
|
32
|
+
color: inherit;
|
33
|
+
line-height: 0; // removes extra negative space below the indicators
|
34
|
+
text-align: center;
|
35
|
+
pointer-events: none;
|
36
|
+
}
|
37
|
+
|
38
|
+
.govuk-exit-this-page__indicator--visible {
|
39
|
+
display: block;
|
40
|
+
}
|
41
|
+
|
42
|
+
.govuk-exit-this-page__indicator-light {
|
43
|
+
box-sizing: border-box;
|
44
|
+
display: inline-block;
|
45
|
+
width: $indicator-size;
|
46
|
+
height: $indicator-size;
|
47
|
+
margin: 0 .125em;
|
48
|
+
border-width: 2px;
|
49
|
+
border-style: solid;
|
50
|
+
border-radius: 50%;
|
51
|
+
|
52
|
+
@include _govuk-not-ie8 {
|
53
|
+
border-color: currentcolor;
|
54
|
+
}
|
55
|
+
|
56
|
+
@include _govuk-if-ie8 {
|
57
|
+
border-color: govuk-colour("white");
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
.govuk-exit-this-page__indicator-light--on {
|
62
|
+
border-width: $indicator-size / 2;
|
63
|
+
}
|
64
|
+
|
65
|
+
@media only print {
|
66
|
+
.govuk-exit-this-page {
|
67
|
+
display: none;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
.govuk-exit-this-page-overlay {
|
72
|
+
position: fixed;
|
73
|
+
z-index: 9999;
|
74
|
+
top: 0;
|
75
|
+
right: 0;
|
76
|
+
bottom: 0;
|
77
|
+
left: 0;
|
78
|
+
background-color: govuk-colour("white");
|
79
|
+
}
|
80
|
+
|
81
|
+
// This class is added to the body when the Exit This Page button is activated
|
82
|
+
// in addition to the overlay to both block the entire screen and hide everything
|
83
|
+
// underneath it.
|
84
|
+
//
|
85
|
+
// We do this to ensure that users don't risk interacting with the page underneath
|
86
|
+
// the overlay between activating the button and navigating to the next page.
|
87
|
+
.govuk-exit-this-page-hide-content {
|
88
|
+
// stylelint-disable declaration-no-important
|
89
|
+
* {
|
90
|
+
display: none !important;
|
91
|
+
}
|
92
|
+
|
93
|
+
.govuk-exit-this-page-overlay {
|
94
|
+
display: block !important;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
@@ -16,6 +16,18 @@
|
|
16
16
|
@mixin govuk-visually-hidden($important: true) {
|
17
17
|
position: absolute if($important, !important, null);
|
18
18
|
|
19
|
+
// Absolute positioning has the unintended consequence of removing any
|
20
|
+
// whitespace surrounding visually hidden text from the accessibility tree.
|
21
|
+
// Insert a space character before and after visually hidden text to separate
|
22
|
+
// it from any visible text surrounding it.
|
23
|
+
&:before {
|
24
|
+
content: "\00a0";
|
25
|
+
}
|
26
|
+
|
27
|
+
&:after {
|
28
|
+
content: "\00a0";
|
29
|
+
}
|
30
|
+
|
19
31
|
width: 1px if($important, !important, null);
|
20
32
|
height: 1px if($important, !important, null);
|
21
33
|
// If margin is set to a negative value it can cause text to be announced in
|
@@ -14,6 +14,26 @@
|
|
14
14
|
-moz-text-size-adjust: 100%;
|
15
15
|
text-size-adjust: 100%;
|
16
16
|
|
17
|
+
// Add scroll padding to the top of govuk-template but remove it if the
|
18
|
+
// exit this page component is present.
|
19
|
+
//
|
20
|
+
// This is a solution to exit this page potentially failing WCAG SC 2.4.12:
|
21
|
+
// Focus Not Obscured (https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum.html)
|
22
|
+
// due to it's sticky positioning.
|
23
|
+
//
|
24
|
+
// This will apply scroll-padding-top in any browsers that don't support :has
|
25
|
+
// (https://caniuse.com/css-has). This is part of the reason we do this in
|
26
|
+
// a "wrong way round" way as we hypothesise that the risks of having
|
27
|
+
// scroll-padding unnecessarily is better than risking not having scroll-padding
|
28
|
+
// and needing it to account for exit this page.
|
29
|
+
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
30
|
+
scroll-padding-top: govuk-spacing(9);
|
31
|
+
|
32
|
+
&:not(:has(.govuk-exit-this-page)) {
|
33
|
+
scroll-padding-top: 0;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
17
37
|
// Force the scrollbar to always display in IE, to prevent horizontal page
|
18
38
|
// jumps as content height changes (e.g. autocomplete results open).
|
19
39
|
@include govuk-media-query($media-type: screen) {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: katalyst-govuk-formbuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katalyst Interactive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_design_system_formbuilder
|
@@ -73,6 +73,8 @@ files:
|
|
73
73
|
- vendor/assets/stylesheets/govuk-frontend/govuk/components/error-message/_index.scss
|
74
74
|
- vendor/assets/stylesheets/govuk-frontend/govuk/components/error-summary/_error-summary.scss
|
75
75
|
- vendor/assets/stylesheets/govuk-frontend/govuk/components/error-summary/_index.scss
|
76
|
+
- vendor/assets/stylesheets/govuk-frontend/govuk/components/exit-this-page/_exit-this-page.scss
|
77
|
+
- vendor/assets/stylesheets/govuk-frontend/govuk/components/exit-this-page/_index.scss
|
76
78
|
- vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_fieldset.scss
|
77
79
|
- vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_index.scss
|
78
80
|
- vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_file-upload.scss
|