govuk_publishing_components 21.50.0 → 21.50.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aba7af8d97c47a66a1cc2e94b2140a16a7575f106405043722de56e026f48818
|
|
4
|
+
data.tar.gz: 9ef24b3f37b401f85f3c83bb77c34b6a86291016082ff489decbd07ec2618002
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9cef0d13da3a06b72d2120250fdc957bc060452a324ea86927bd87d93a1ad9401ce3c7dc9e778c3f668535309f904acd1d275a5ff11f1a5ebca7a2456cbf0543
|
|
7
|
+
data.tar.gz: b80eed8af5d8b9d830d8d02acd65a81e3d5b0e089bf4d100b2694f2ccd6621dddb34e2f86adc2a66623a59faef85f623a2305976083d90cbce2930fa4947f8d6
|
|
@@ -20,6 +20,11 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
.gem-c-action-link__contents-wrapper {
|
|
24
|
+
display: table-cell;
|
|
25
|
+
vertical-align: middle;
|
|
26
|
+
}
|
|
27
|
+
|
|
23
28
|
.gem-c-action-link__link-wrapper {
|
|
24
29
|
@include govuk-font(19, $weight: bold, $line-height: 1.3);
|
|
25
30
|
display: table-cell;
|
|
@@ -89,7 +94,7 @@
|
|
|
89
94
|
background-image: image-url("govuk_publishing_components/action-link-arrow--simple.svg");
|
|
90
95
|
// sass-lint:enable no-duplicate-properties
|
|
91
96
|
background-size: 25px auto;
|
|
92
|
-
background-position: 0
|
|
97
|
+
background-position: 0 2px;
|
|
93
98
|
}
|
|
94
99
|
|
|
95
100
|
.gem-c-action-link__link {
|
|
@@ -112,7 +117,7 @@
|
|
|
112
117
|
background-image: image-url("govuk_publishing_components/action-link-arrow--dark.svg");
|
|
113
118
|
// sass-lint:enable no-duplicate-properties
|
|
114
119
|
background-size: 25px auto;
|
|
115
|
-
background-position: 0
|
|
120
|
+
background-position: 0 2px;
|
|
116
121
|
}
|
|
117
122
|
|
|
118
123
|
.gem-c-action-link__link {
|
|
@@ -24,16 +24,24 @@
|
|
|
24
24
|
%>
|
|
25
25
|
<% if href.present? && text.present? %>
|
|
26
26
|
<div class="<%= css_classes.join(' ') %>">
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<%=
|
|
30
|
-
|
|
27
|
+
<% contents = capture do %>
|
|
28
|
+
<span class="gem-c-action-link__link-wrapper">
|
|
29
|
+
<%= link_to href, :class => link_classes, :data => data do %>
|
|
30
|
+
<%= text %>
|
|
31
|
+
<%= content_tag(:span, nowrap_text, class: "gem-c-action-link__nowrap-text") if nowrap_text %>
|
|
32
|
+
<% end %>
|
|
33
|
+
</span>
|
|
34
|
+
<% if subtext %>
|
|
35
|
+
<span class="gem-c-action-link__subtext-wrapper">
|
|
36
|
+
<%= content_tag(:span, subtext, class: "gem-c-action-link__subtext") %>
|
|
37
|
+
</span>
|
|
31
38
|
<% end %>
|
|
32
|
-
|
|
39
|
+
<% end %>
|
|
40
|
+
|
|
33
41
|
<% if subtext %>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
42
|
+
<%= content_tag(:span, contents, class: "gem-c-action-link__contents-wrapper") %>
|
|
43
|
+
<% else %>
|
|
44
|
+
<%= contents %>
|
|
37
45
|
<% end %>
|
|
38
46
|
</div>
|
|
39
47
|
<% end %>
|