govuk_publishing_components 35.16.1 → 35.17.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/images/govuk_publishing_components/action-link-arrow--light.png +0 -0
- data/app/assets/images/govuk_publishing_components/action-link-arrow--light.svg +7 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +2 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +18 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +24 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +5 -0
- data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_search.html.erb +3 -0
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +9 -9
- data/app/views/govuk_publishing_components/components/docs/action_link.yml +5 -0
- data/app/views/govuk_publishing_components/components/docs/search.yml +11 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b2ae98a5a0bfe9237ad8666586cf56d55c5f737e03cac016826b577ad6b280e0
|
|
4
|
+
data.tar.gz: 66a94a3ef052fff63ba972df2ad0b39bf48220a42308c1d5bb06ba5343dbf621
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e20d31b9ece60b5bda9387d1b87396dd4089fe10c6c808db6b11201988f7d07e2f23befc0d77a37f7842eda137edf9a200e963766b6971bcea707bfa9300e22
|
|
7
|
+
data.tar.gz: a4e27aeecf3c73c9a105fbe4e307aedc6acd1e489349c917b8341b51f42b5b7bd2d6cab2e6b6ae3f864fdf5da69fa4db68ed1023db15cf73c0910521ff3e2f9a
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="27" height="27" viewBox="0 0 27 27" fill="none">
|
|
2
|
+
<circle cx="13.5" cy="13.5" r="13.5" fill="#EEEFEF"/>
|
|
3
|
+
<g transform="translate(5 3.5) scale(0.85)">
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.9429 11.7949L10.4402 7.29222L11.7327 5.99967L17.528 11.7949L11.7327 17.5902L10.4402 16.2976L14.9429 11.7949Z" fill="#000000"/>
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.95631 10.881L15.4414 10.881L15.4414 12.709L3.95631 12.709L3.95631 10.881Z" fill="#000000"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -288,11 +288,8 @@ window.GOVUK.analyticsGa4 = window.GOVUK.analyticsGa4 || {};
|
|
|
288
288
|
return null
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
//
|
|
292
|
-
|
|
293
|
-
resultCount = window.GOVUK.analyticsGa4.core.trackFunctions.removeLinesAndExtraSpaces(resultCount.textContent)
|
|
294
|
-
resultCount = resultCount.replace(',', '')
|
|
295
|
-
resultCount = resultCount.split(' ')[0]
|
|
291
|
+
// Remove anything that isn't a number from the result count heading. E.g. 'Results:' or the comma in '1,234'
|
|
292
|
+
resultCount = resultCount.textContent.replace(/[^0-9]+/g, '')
|
|
296
293
|
|
|
297
294
|
return parseInt(resultCount)
|
|
298
295
|
},
|
|
@@ -166,6 +166,24 @@
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
+
.gem-c-action-link--light-icon {
|
|
170
|
+
&::before {
|
|
171
|
+
width: 36px;
|
|
172
|
+
height: 28px;
|
|
173
|
+
background: image-url("govuk_publishing_components/action-link-arrow--light.png");
|
|
174
|
+
background: image-url("govuk_publishing_components/action-link-arrow--light.svg"), linear-gradient(transparent, transparent);
|
|
175
|
+
background-repeat: no-repeat;
|
|
176
|
+
background-size: 28px auto;
|
|
177
|
+
background-position: 0 0;
|
|
178
|
+
|
|
179
|
+
@include govuk-media-query($from: tablet) {
|
|
180
|
+
width: 45px;
|
|
181
|
+
height: 35px;
|
|
182
|
+
background-size: 35px auto;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
169
187
|
.gem-c-action-link--dark-icon,
|
|
170
188
|
.gem-c-action-link--small-icon {
|
|
171
189
|
max-width: none;
|
|
@@ -55,7 +55,7 @@ $large-input-size: 50px;
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
@mixin gem-c-search-input-focus {
|
|
59
59
|
outline: $govuk-focus-width solid $govuk-focus-colour;
|
|
60
60
|
// Ensure outline appears outside of the element
|
|
61
61
|
outline-offset: 0;
|
|
@@ -89,7 +89,7 @@ $large-input-size: 50px;
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
&:focus {
|
|
92
|
-
@
|
|
92
|
+
@include gem-c-search-input-focus;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
@@ -168,10 +168,9 @@ $large-input-size: 50px;
|
|
|
168
168
|
// Ensure outline appears outside of the element
|
|
169
169
|
outline-offset: 0;
|
|
170
170
|
|
|
171
|
-
// no need for black outline as there is enough contrast
|
|
172
|
-
// with the blue background
|
|
173
171
|
&:focus {
|
|
174
|
-
|
|
172
|
+
@include gem-c-search-input-focus;
|
|
173
|
+
box-shadow: inset 0 0 0 4px;
|
|
175
174
|
}
|
|
176
175
|
}
|
|
177
176
|
|
|
@@ -191,6 +190,17 @@ $large-input-size: 50px;
|
|
|
191
190
|
}
|
|
192
191
|
}
|
|
193
192
|
|
|
193
|
+
.gem-c-search--homepage {
|
|
194
|
+
.gem-c-search__submit {
|
|
195
|
+
background-color: #d2e2f1;
|
|
196
|
+
color: govuk-colour("blue");
|
|
197
|
+
|
|
198
|
+
&:hover {
|
|
199
|
+
background-color: lighten(#d2e2f1, 5%);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
194
204
|
.gem-c-search--on-white {
|
|
195
205
|
.gem-c-search__submit {
|
|
196
206
|
background-color: govuk-colour("blue");
|
|
@@ -211,6 +221,10 @@ $large-input-size: 50px;
|
|
|
211
221
|
}
|
|
212
222
|
}
|
|
213
223
|
|
|
224
|
+
.gem-c-search__label--white {
|
|
225
|
+
color: govuk-colour("white");
|
|
226
|
+
}
|
|
227
|
+
|
|
214
228
|
.gem-c-search--no-border {
|
|
215
229
|
.gem-c-search__label {
|
|
216
230
|
color: govuk-colour("white");
|
|
@@ -218,6 +232,11 @@ $large-input-size: 50px;
|
|
|
218
232
|
|
|
219
233
|
.gem-c-search__input[type="search"] {
|
|
220
234
|
border: 0;
|
|
235
|
+
|
|
236
|
+
&:focus {
|
|
237
|
+
@include gem-c-search-input-focus;
|
|
238
|
+
box-shadow: inset 0 0 0 4px;
|
|
239
|
+
}
|
|
221
240
|
}
|
|
222
241
|
|
|
223
242
|
.js-enabled & {
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
simple_light ||= false
|
|
18
18
|
dark_icon ||= false
|
|
19
19
|
dark_large_icon ||= false
|
|
20
|
+
light_icon ||= false
|
|
20
21
|
small_icon ||= false
|
|
21
22
|
nhs_icon ||= false
|
|
22
23
|
brexit_icon ||= false
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
css_classes << "gem-c-action-link--dark-large-icon" if dark_large_icon
|
|
32
33
|
css_classes << "gem-c-action-link--small-icon" if small_icon
|
|
33
34
|
css_classes << "gem-c-action-link--transparent-icon" if transparent_icon
|
|
35
|
+
css_classes << "gem-c-action-link--light-icon" if light_icon
|
|
34
36
|
css_classes << "gem-c-action-link--nhs" if nhs_icon
|
|
35
37
|
css_classes << "gem-c-action-link--brexit" if brexit_icon
|
|
36
38
|
css_classes << "gem-c-action-link--blue-arrow" if blue_arrow
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
label_size ||= nil
|
|
13
13
|
label_text ||= t("components.search_box.label")
|
|
14
14
|
name ||= "q"
|
|
15
|
+
homepage ||= false
|
|
15
16
|
no_border ||= false
|
|
16
17
|
size ||= ""
|
|
17
18
|
value ||= ""
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
classes << shared_helper.get_margin_bottom if local_assigns[:margin_bottom]
|
|
25
26
|
classes << "gem-c-search--large" if size == "large"
|
|
26
27
|
classes << "gem-c-search--large-on-mobile" if size == "large-mobile"
|
|
28
|
+
classes << "gem-c-search--homepage" if homepage
|
|
27
29
|
classes << "gem-c-search--no-border" if no_border
|
|
28
30
|
if local_assigns[:on_govuk_blue].eql?(true)
|
|
29
31
|
classes << "gem-c-search--on-govuk-blue"
|
|
@@ -35,6 +37,7 @@
|
|
|
35
37
|
label_classes = []
|
|
36
38
|
if (shared_helper.valid_heading_size?(label_size))
|
|
37
39
|
label_classes << "govuk-label govuk-label--#{label_size}"
|
|
40
|
+
label_classes << "gem-c-search__label--white" if no_border || homepage
|
|
38
41
|
else
|
|
39
42
|
label_classes << "gem-c-search__label"
|
|
40
43
|
end
|
|
@@ -86,39 +86,39 @@
|
|
|
86
86
|
class: "govuk-link govuk-link--no-underline gem-c-share-links__link #{brand_helper.color_class}" do %>
|
|
87
87
|
<span class="gem-c-share-links__link-icon">
|
|
88
88
|
<% if link[:icon] == 'facebook' %>
|
|
89
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
|
89
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" width="0" height="0" class="gem-c-share-links__svg">
|
|
90
90
|
<path fill="currentColor" d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
|
|
91
91
|
</svg>
|
|
92
92
|
<% elsif link[:icon] == 'twitter' %>
|
|
93
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
|
93
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" width="0" height="0" class="gem-c-share-links__svg">
|
|
94
94
|
<path fill="currentColor" d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"/>
|
|
95
95
|
</svg>
|
|
96
96
|
<% elsif link[:icon] == 'email' %>
|
|
97
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 73.84 73.84" aria-hidden="true" focusable="false">
|
|
97
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 73.84 73.84" aria-hidden="true" focusable="false" width="0" height="0" class="gem-c-share-links__svg">
|
|
98
98
|
<path fill="currentColor" d="M36.92,0A36.92,36.92,0,1,0,73.84,36.92,36.92,36.92,0,0,0,36.92,0ZM58.37,21,36.92,39.45,15.47,21ZM11.65,23.66,26.27,36.23,11.65,49.9ZM15.1,52.83,29.7,39.18l7.22,6.21,7.22-6.21,14.6,13.65ZM62.19,49.9,47.57,36.23,62.19,23.66Z"/>
|
|
99
99
|
</svg>
|
|
100
100
|
<% elsif link[:icon] == 'flickr' %>
|
|
101
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
|
101
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" width="0" height="0" class="gem-c-share-links__svg">
|
|
102
102
|
<path fill="currentColor" d="M5.334 6.666C2.3884 6.666 0 9.055 0 12c0 2.9456 2.3884 5.334 5.334 5.334 2.9456 0 5.332-2.3884 5.332-5.334 0-2.945-2.3864-5.334-5.332-5.334zm13.332 0c-2.9456 0-5.332 2.389-5.332 5.334 0 2.9456 2.3864 5.334 5.332 5.334C21.6116 17.334 24 14.9456 24 12c0-2.945-2.3884-5.334-5.334-5.334Z"/>
|
|
103
103
|
</svg>
|
|
104
104
|
<% elsif link[:icon] == 'instagram' %>
|
|
105
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
|
105
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" width="0" height="0" class="gem-c-share-links__svg">
|
|
106
106
|
<path fill="currentColor" d="M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"/>
|
|
107
107
|
</svg>
|
|
108
108
|
<% elsif link[:icon] == 'linkedin' %>
|
|
109
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
|
109
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" width="0" height="0" class="gem-c-share-links__svg">
|
|
110
110
|
<path fill="currentColor" d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>
|
|
111
111
|
</svg>
|
|
112
112
|
<% elsif link[:icon] == 'youtube' %>
|
|
113
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
|
113
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" width="0" height="0" class="gem-c-share-links__svg">
|
|
114
114
|
<path fill="currentColor" d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/>
|
|
115
115
|
</svg>
|
|
116
116
|
<% elsif link[:icon] == 'whatsapp' %>
|
|
117
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
|
117
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" width="0" height="0" class="gem-c-share-links__svg">
|
|
118
118
|
<path fill="currentColor" d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/>
|
|
119
119
|
</svg>
|
|
120
120
|
<% else %>
|
|
121
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 73.84 73.84" aria-hidden="true" focusable="false">
|
|
121
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 73.84 73.84" aria-hidden="true" focusable="false" width="0" height="0" class="gem-c-share-links__svg">
|
|
122
122
|
<path fill="currentColor" d="M36.92,0A36.92,36.92,0,1,0,73.84,36.92,36.92,36.92,0,0,0,36.92,0ZM56.3,48.27a1.42,1.42,0,0,1-1.42,1.42h-19v9.18l-9.18-9.18H19a1.43,1.43,0,0,1-1.43-1.43V20.52A1.43,1.43,0,0,1,19,19.09H54.88a1.43,1.43,0,0,1,1.42,1.42Z"/>
|
|
123
123
|
</svg>
|
|
124
124
|
<% end %>
|
|
@@ -120,6 +120,11 @@ examples:
|
|
|
120
120
|
text: Coronavirus (COVID-19)
|
|
121
121
|
href: "/my-test-page"
|
|
122
122
|
dark_large_icon: true
|
|
123
|
+
with_light_icon:
|
|
124
|
+
data:
|
|
125
|
+
text: Coronavirus (COVID-19)
|
|
126
|
+
href: "/my-test-page"
|
|
127
|
+
light_icon: true
|
|
123
128
|
with_brexit_icon_and_custom_font_size:
|
|
124
129
|
data:
|
|
125
130
|
text: Guidance for businesses
|
|
@@ -35,6 +35,17 @@ examples:
|
|
|
35
35
|
on_govuk_blue: true
|
|
36
36
|
context:
|
|
37
37
|
dark_background: true
|
|
38
|
+
homepage:
|
|
39
|
+
description: For use on the homepage.
|
|
40
|
+
data:
|
|
41
|
+
label_text: "Search"
|
|
42
|
+
inline_label: false
|
|
43
|
+
on_govuk_blue: true
|
|
44
|
+
label_size: "s"
|
|
45
|
+
homepage: true
|
|
46
|
+
size: "large"
|
|
47
|
+
context:
|
|
48
|
+
dark_background: true
|
|
38
49
|
change_label_text:
|
|
39
50
|
data:
|
|
40
51
|
label_text: "Search"
|
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: 35.
|
|
4
|
+
version: 35.17.0
|
|
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: 2023-09-
|
|
11
|
+
date: 2023-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: govuk_app_config
|
|
@@ -349,6 +349,8 @@ files:
|
|
|
349
349
|
- app/assets/images/govuk_publishing_components/action-link-arrow--brexit.svg
|
|
350
350
|
- app/assets/images/govuk_publishing_components/action-link-arrow--dark.png
|
|
351
351
|
- app/assets/images/govuk_publishing_components/action-link-arrow--dark.svg
|
|
352
|
+
- app/assets/images/govuk_publishing_components/action-link-arrow--light.png
|
|
353
|
+
- app/assets/images/govuk_publishing_components/action-link-arrow--light.svg
|
|
352
354
|
- app/assets/images/govuk_publishing_components/action-link-arrow--simple-light.png
|
|
353
355
|
- app/assets/images/govuk_publishing_components/action-link-arrow--simple-light.svg
|
|
354
356
|
- app/assets/images/govuk_publishing_components/action-link-arrow--simple.png
|
|
@@ -1473,7 +1475,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1473
1475
|
- !ruby/object:Gem::Version
|
|
1474
1476
|
version: '0'
|
|
1475
1477
|
requirements: []
|
|
1476
|
-
rubygems_version: 3.4.
|
|
1478
|
+
rubygems_version: 3.4.20
|
|
1477
1479
|
signing_key:
|
|
1478
1480
|
specification_version: 4
|
|
1479
1481
|
summary: A gem to document components in GOV.UK frontend applications
|