govuk_publishing_components 21.26.1 → 21.26.2
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/components/feedback.js +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +16 -13
- data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +11 -13
- data/app/views/govuk_publishing_components/components/docs/breadcrumbs.yml +0 -1
- 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: 5cc3f29fce3143ed9b648c5c9e49471e5624f51d42fcca04941b166962f1ef10
|
|
4
|
+
data.tar.gz: f8163f7c80c04ae79ee9628b073883ff404a4afd2415e181bf419a1cf2b196ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8fa1baf83ec27c033f21c2c64a90a787a4a7a6e471e425941000e480213e90451e543704d178788c72f28107fb1dbb64a3735f3d9ad8e4d9f0fdccb416a09290
|
|
7
|
+
data.tar.gz: fa6bf742ccc2812e7f43c717e3386170db7fa8b6c2fb8a7910d2880254c48bfb8690424eda8b285d63c33443bd0cc2a89c99a4937076b95a424084b96c5cd631
|
|
@@ -152,7 +152,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
|
152
152
|
|
|
153
153
|
function showError (error) {
|
|
154
154
|
var genericError = [
|
|
155
|
-
'<h2
|
|
155
|
+
'<h2>',
|
|
156
156
|
' Sorry, we’re unable to receive your message right now. ',
|
|
157
157
|
'</h2>',
|
|
158
158
|
'<p>If the problem persists, we have other ways for you to provide',
|
|
@@ -95,21 +95,22 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
// this comes from the backend so we can't put a class on it
|
|
98
|
-
h2
|
|
99
|
-
.gem-c-feedback__heading {
|
|
98
|
+
h2 {
|
|
100
99
|
@include govuk-text-colour;
|
|
101
|
-
@include govuk-font(24, $weight: bold);
|
|
102
|
-
margin: 0;
|
|
100
|
+
@include govuk-font($size: 24, $weight: bold);
|
|
101
|
+
margin: 0 0 govuk-spacing(3) 0;
|
|
103
102
|
}
|
|
104
103
|
|
|
105
104
|
p {
|
|
106
105
|
@include govuk-text-colour;
|
|
107
|
-
@include govuk-font(19);
|
|
108
|
-
margin: govuk-spacing(
|
|
106
|
+
@include govuk-font($size: 19);
|
|
107
|
+
margin: 0 0 govuk-spacing(3) 0;
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
a {
|
|
112
|
-
@
|
|
111
|
+
@include govuk-link-common;
|
|
112
|
+
@include govuk-link-style-default;
|
|
113
|
+
@include govuk-link-print-friendly;
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
|
|
@@ -173,13 +174,15 @@
|
|
|
173
174
|
|
|
174
175
|
// static.css on GOV.UK overwrites the component styles using input[type="text"]
|
|
175
176
|
// so we need to apply govuk-input styles using a stronger selector
|
|
176
|
-
.gem-c-feedback input[type="text"] {
|
|
177
|
-
|
|
178
|
-
// sass-lint:disable placeholder-in-extend
|
|
179
|
-
@extend .govuk-input;
|
|
180
|
-
// sass-lint:enable placeholder-in-extend
|
|
181
|
-
// scss-lint:enable PlaceholderInExtend
|
|
177
|
+
.gem-c-feedback .gem-c-input[type="text"] {
|
|
178
|
+
@include govuk-font($size: 19);
|
|
182
179
|
margin: 0;
|
|
180
|
+
padding: govuk-spacing(1);
|
|
181
|
+
border: $govuk-border-width-form-element solid $govuk-input-border-colour;
|
|
182
|
+
|
|
183
|
+
&:focus {
|
|
184
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
|
185
|
+
}
|
|
183
186
|
}
|
|
184
187
|
|
|
185
188
|
.gem-c-feedback__option-list {
|
|
@@ -13,21 +13,19 @@
|
|
|
13
13
|
<ol class="govuk-breadcrumbs__list">
|
|
14
14
|
<% breadcrumbs.each_with_index do |crumb, index| %>
|
|
15
15
|
<% breadcrumb = GovukPublishingComponents::Presenters::Breadcrumb.new(crumb, index) %>
|
|
16
|
-
<li class="govuk-breadcrumbs__list-item" aria-current="<%= breadcrumb.aria_current %>">
|
|
17
16
|
<% if breadcrumb.is_link? %>
|
|
18
|
-
<%=
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
<li class="govuk-breadcrumbs__list-item" aria-current="<%= breadcrumb.aria_current %>">
|
|
18
|
+
<%= link_to(
|
|
19
|
+
breadcrumb[:title],
|
|
20
|
+
breadcrumb.path,
|
|
21
|
+
data: breadcrumb.tracking_data(breadcrumbs.length),
|
|
22
|
+
class: "govuk-breadcrumbs__link",
|
|
23
|
+
aria: {
|
|
24
|
+
current: breadcrumb.aria_current,
|
|
25
|
+
}
|
|
26
|
+
) %>
|
|
27
|
+
</li>
|
|
29
28
|
<% end %>
|
|
30
|
-
</li>
|
|
31
29
|
<% end %>
|
|
32
30
|
</ol>
|
|
33
31
|
</div>
|
|
@@ -71,7 +71,6 @@ examples:
|
|
|
71
71
|
long_taxon_on_mobile:
|
|
72
72
|
description: This is an example of a breadcrumb (specifically for mobile) with long taxons on the the parent item and a greater touch target area
|
|
73
73
|
data:
|
|
74
|
-
collapse_on_mobile: true
|
|
75
74
|
breadcrumbs:
|
|
76
75
|
- title: 'Home'
|
|
77
76
|
url: '/'
|
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: 21.26.
|
|
4
|
+
version: 21.26.2
|
|
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: 2020-02-
|
|
11
|
+
date: 2020-02-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gds-api-adapters
|