govuk_publishing_components 27.3.1 → 27.4.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--blue.png +0 -0
- data/app/assets/images/govuk_publishing_components/action-link-arrow--blue.svg +3 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +12 -0
- data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/docs/action_link.yml +5 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- 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: 701cdbaae0e829d529cf36553c1fa9a0856b552d1933700c1789276209bc131f
|
|
4
|
+
data.tar.gz: c2418c0148dfbf76fa3a689f50089d0f797216b68979a1056b3a08b84f56da98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6658563042e32a3a4f9f6bf2d8f883b4f9bfae2c4fdbc7148e3878dbbd0d993e13263af5f7510167467777aac84e225673be2eb29e14dc3474d32046494093a4
|
|
7
|
+
data.tar.gz: 864f25f602249724ce5476e06918a9eb181edc0e9fb57ba394e578f0a95faa6790bab96733cc77d4bb69508b1b159dfc203412d7935ccb247b9938928c6fd4b9
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.4893 23C17.8406 23 22.9893 17.8513 22.9893 11.5C22.9893 5.14873 17.8406 0 11.4893 0C5.64643 0 0.821276 4.35747 0.0862655 10H12.7633L8.98933 5.67277L10.4482 4L16.9893 11.5L10.4482 19L8.98933 17.3272L13.6354 12H0C0.261778 18.1193 5.30558 23 11.4893 23ZM13.9893 11.5942L14.0715 11.5L13.9893 11.4057V11.5942Z" fill="#366FB3"/>
|
|
3
|
+
</svg>
|
|
@@ -92,6 +92,18 @@
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
.gem-c-action-link--blue-arrow {
|
|
96
|
+
&:before {
|
|
97
|
+
width: 35px;
|
|
98
|
+
height: 30px;
|
|
99
|
+
background: image-url("govuk_publishing_components/action-link-arrow--blue.png");
|
|
100
|
+
background: image-url("govuk_publishing_components/action-link-arrow--blue.svg"), linear-gradient(transparent, transparent);
|
|
101
|
+
background-repeat: no-repeat;
|
|
102
|
+
background-size: 25px auto;
|
|
103
|
+
background-position: 0 2px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
95
107
|
.gem-c-action-link--simple {
|
|
96
108
|
&:before {
|
|
97
109
|
width: 30px;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
subtext_href ||= false
|
|
10
10
|
mobile_subtext ||= false
|
|
11
11
|
light_text ||= false
|
|
12
|
+
blue_arrow ||= false
|
|
12
13
|
simple ||= false
|
|
13
14
|
simple_light ||= false
|
|
14
15
|
dark_icon ||= false
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
css_classes << "gem-c-action-link--transparent-icon" if transparent_icon
|
|
28
29
|
css_classes << "gem-c-action-link--nhs" if nhs_icon
|
|
29
30
|
css_classes << "gem-c-action-link--brexit" if brexit_icon
|
|
31
|
+
css_classes << "gem-c-action-link--blue-arrow" if blue_arrow
|
|
30
32
|
css_classes << "gem-c-action-link--simple" if simple
|
|
31
33
|
css_classes << "gem-c-action-link--simple-light" if simple_light
|
|
32
34
|
css_classes << "gem-c-action-link--with-subtext" if subtext
|
|
@@ -78,6 +78,11 @@ examples:
|
|
|
78
78
|
light_text: true
|
|
79
79
|
context:
|
|
80
80
|
dark_background: true
|
|
81
|
+
blue_arrow:
|
|
82
|
+
data:
|
|
83
|
+
text: Find out how to stay safe and help prevent the spread
|
|
84
|
+
href: "/something"
|
|
85
|
+
blue_arrow: true
|
|
81
86
|
simple_arrow:
|
|
82
87
|
data:
|
|
83
88
|
text: Getting financial help and keeping your business safe
|
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: 27.
|
|
4
|
+
version: 27.4.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: 2021-
|
|
11
|
+
date: 2021-10-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: govuk_app_config
|
|
@@ -378,6 +378,8 @@ files:
|
|
|
378
378
|
- app/assets/config/govuk_publishing_components_manifest.js
|
|
379
379
|
- app/assets/images/govuk_publishing_components/action-link--nhs.png
|
|
380
380
|
- app/assets/images/govuk_publishing_components/action-link--nhs.svg
|
|
381
|
+
- app/assets/images/govuk_publishing_components/action-link-arrow--blue.png
|
|
382
|
+
- app/assets/images/govuk_publishing_components/action-link-arrow--blue.svg
|
|
381
383
|
- app/assets/images/govuk_publishing_components/action-link-arrow--brexit.svg
|
|
382
384
|
- app/assets/images/govuk_publishing_components/action-link-arrow--dark.png
|
|
383
385
|
- app/assets/images/govuk_publishing_components/action-link-arrow--dark.svg
|