govuk_publishing_components 21.50.0 → 21.50.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 159d020ba82914af6816875f569ef650b3bde9b0a3573048c576cdd2e3b0d864
4
- data.tar.gz: 777fcff7c030364ae8018fee71e746c24ab1b60aaa4a08bc7a1665ffe704086e
3
+ metadata.gz: aba7af8d97c47a66a1cc2e94b2140a16a7575f106405043722de56e026f48818
4
+ data.tar.gz: 9ef24b3f37b401f85f3c83bb77c34b6a86291016082ff489decbd07ec2618002
5
5
  SHA512:
6
- metadata.gz: cf14fda6410001b1c39da5fc1e878ad6865cf0ba4d13110b1af3ea0c9bf2745ff949ab7ade06cf12449e34a3855108d655e92b5b32ce42e5dd78b2a5f94a0692
7
- data.tar.gz: 7e8af37602ddc795cba2d4f5c2c81888169bd9a0919ec9c5c16db2c1fd298aa6a0a62b331ce5579ae6afee9069af07c793a2d58a473b853dc0325b55c3a4caa4
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 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 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
- <span class="gem-c-action-link__link-wrapper">
28
- <%= link_to href, :class => link_classes, :data => data do %>
29
- <%= text %>
30
- <%= content_tag(:span, nowrap_text, class: "gem-c-action-link__nowrap-text") if nowrap_text %>
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
- </span>
39
+ <% end %>
40
+
33
41
  <% if subtext %>
34
- <span class="gem-c-action-link__subtext-wrapper">
35
- <%= content_tag(:span, subtext, class: "gem-c-action-link__subtext") %>
36
- </span>
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 %>
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "21.50.0".freeze
2
+ VERSION = "21.50.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 21.50.0
4
+ version: 21.50.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev