govuk_publishing_components 45.4.0 → 45.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/lib/_print_support.scss +4 -4
- data/app/views/govuk_publishing_components/components/_action_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_cards.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_contents_list.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_devolved_nations.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_document_list.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_image_card.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_inset_text.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_intervention.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +2 -2
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91a9b3470d53c814d4fec823d2fd87bd8a6ab7127bc3f53b62b3ca2d51411b96
|
4
|
+
data.tar.gz: e45e589a4686dfd477d8681d3389b8d1f365496d30462b5f1ffec307eecdf0f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc8a324574146f0965d92f38f5ff419f8543601f6d47e79ba001578111ba6e8002e19300c73bf799aac8d54f6d19e187baa187966f4c4a0921f5facdcc66847e
|
7
|
+
data.tar.gz: 2013bf52ff4204da2669c8c920b6d50a12aaac9e25bc8c99f94f187f65c566713ec22bcea250103fe04c68bd70d7cea5db36b701f823a42f2307eb2f3ac97518
|
@@ -36,13 +36,13 @@
|
|
36
36
|
// to black, reduce the font size, and improve the layout
|
37
37
|
// of the printed href.
|
38
38
|
//
|
39
|
-
// .gem-c-print-link
|
39
|
+
// .gem-c-force-print-link-styles
|
40
40
|
// ----------------------------------------------------------
|
41
41
|
// Typically this class will be applied to existing
|
42
42
|
// elements that have the `govuk-link` class but it can
|
43
43
|
// also be used on other link elements.
|
44
44
|
//
|
45
|
-
// .gem-c-print-
|
45
|
+
// .gem-c-force-print-link-styles-within
|
46
46
|
// ----------------------------------------------------------
|
47
47
|
// A variation of the previous print style, to be used on
|
48
48
|
// parent elements that contain links with the `govuk-link`
|
@@ -52,8 +52,8 @@
|
|
52
52
|
|
53
53
|
// stylelint-disable declaration-no-important
|
54
54
|
@include govuk-media-query($media-type: print) {
|
55
|
-
.gem-c-print-link,
|
56
|
-
.gem-c-print-
|
55
|
+
.gem-c-force-print-link-styles,
|
56
|
+
.gem-c-force-print-link-styles-within .govuk-link {
|
57
57
|
&,
|
58
58
|
&:link,
|
59
59
|
&:visited {
|
@@ -28,7 +28,7 @@
|
|
28
28
|
css_classes << "gem-c-action-link--mobile-subtext" if mobile_subtext
|
29
29
|
css_classes << shared_helper.get_margin_bottom
|
30
30
|
|
31
|
-
link_classes = %w(govuk-link gem-c-action-link__link gem-c-print-link)
|
31
|
+
link_classes = %w(govuk-link gem-c-action-link__link gem-c-force-print-link-styles)
|
32
32
|
link_classes << "govuk-link--inverse" if inverse
|
33
33
|
|
34
34
|
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
@@ -38,7 +38,7 @@
|
|
38
38
|
<%= content_tag("h#{sub_heading_level}", class: "gem-c-cards__sub-heading govuk-heading-s") do %>
|
39
39
|
<%=
|
40
40
|
link_to link[:text], link[:path],
|
41
|
-
class: "govuk-link gem-c-cards__link gem-c-print-link",
|
41
|
+
class: "govuk-link gem-c-cards__link gem-c-force-print-link-styles",
|
42
42
|
data: link[:data_attributes]
|
43
43
|
%>
|
44
44
|
<% end %>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
cl_helper = GovukPublishingComponents::Presenters::ContentsListHelper.new(local_assigns)
|
14
14
|
brand_helper = GovukPublishingComponents::AppHelpers::BrandHelper.new(brand)
|
15
15
|
|
16
|
-
link_classes = %w[gem-c-contents-list__link govuk-link gem-c-print-link]
|
16
|
+
link_classes = %w[gem-c-contents-list__link govuk-link gem-c-force-print-link-styles]
|
17
17
|
link_classes << brand_helper.color_class
|
18
18
|
link_classes << "govuk-link--no-underline" unless underline_links
|
19
19
|
|
@@ -35,7 +35,7 @@
|
|
35
35
|
<% if devolved_nations_helper.nations_with_urls.any? %>
|
36
36
|
<%= content_tag :ul, class: "govuk-list govuk-!-margin-top-1 govuk-!-margin-bottom-0" do -%>
|
37
37
|
<% devolved_nations_helper.nations_with_urls.each do |k, v| %>
|
38
|
-
<%= content_tag(:li, link_to(devolved_nations_helper.alternative_content_text(k), v[:alternative_url], class: "govuk-link gem-c-print-link")) %>
|
38
|
+
<%= content_tag(:li, link_to(devolved_nations_helper.alternative_content_text(k), v[:alternative_url], class: "govuk-link gem-c-force-print-link-styles")) %>
|
39
39
|
<% end %>
|
40
40
|
<% end %>
|
41
41
|
<% end %>
|
@@ -57,7 +57,7 @@
|
|
57
57
|
item[:link][:text],
|
58
58
|
item[:link][:path],
|
59
59
|
data: item[:link][:data_attributes],
|
60
|
-
class: "#{item_classes} govuk-link gem-c-print-link #{extra_link_classes}",
|
60
|
+
class: "#{item_classes} govuk-link gem-c-force-print-link-styles #{extra_link_classes}",
|
61
61
|
lang: item[:link][:locale].presence,
|
62
62
|
rel: rel,
|
63
63
|
)
|
@@ -118,7 +118,7 @@
|
|
118
118
|
part[:link][:text],
|
119
119
|
part[:link][:path],
|
120
120
|
data: part[:link][:data_attributes],
|
121
|
-
class: "gem-c-document-list-child__heading gem-c-document-list-child__link #{brand_helper.color_class} govuk-link gem-c-print-link #{extra_link_classes}",
|
121
|
+
class: "gem-c-document-list-child__heading gem-c-document-list-child__link #{brand_helper.color_class} govuk-link gem-c-force-print-link-styles #{extra_link_classes}",
|
122
122
|
)
|
123
123
|
else
|
124
124
|
content_tag(
|
@@ -25,14 +25,14 @@
|
|
25
25
|
heading_link_classes = %w[
|
26
26
|
gem-c-image-card__title-link
|
27
27
|
govuk-link
|
28
|
-
gem-c-print-link
|
28
|
+
gem-c-force-print-link-styles
|
29
29
|
]
|
30
30
|
heading_link_classes << brand_helper.color_class
|
31
31
|
heading_link_classes << "gem-c-image-card__title-link--large-font-size-mobile" if card_helper.large_mobile_font_size?
|
32
32
|
extra_link_classes = %w[
|
33
33
|
gem-c-image-card__list-item-link
|
34
34
|
govuk-link
|
35
|
-
gem-c-print-link
|
35
|
+
gem-c-force-print-link-styles
|
36
36
|
]
|
37
37
|
extra_link_classes << brand_helper.color_class
|
38
38
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
})
|
12
12
|
|
13
13
|
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
14
|
-
component_helper.add_class("gem-c-inset-text govuk-inset-text gem-c-print-
|
14
|
+
component_helper.add_class("gem-c-inset-text govuk-inset-text gem-c-force-print-link-styles-within")
|
15
15
|
component_helper.add_class(shared_helper.get_margin_top)
|
16
16
|
component_helper.add_class(shared_helper.get_margin_bottom)
|
17
17
|
component_helper.set_id(id)
|
@@ -38,7 +38,7 @@
|
|
38
38
|
data_attributes[:ga4_intervention_banner] = "" unless disable_ga4 # Added to the parent element for the GA4 pageview object to use
|
39
39
|
|
40
40
|
suggestion_tag_options = {
|
41
|
-
class: "govuk-link gem-c-print-link",
|
41
|
+
class: "govuk-link gem-c-force-print-link-styles",
|
42
42
|
href: suggestion_link_url,
|
43
43
|
data: suggestion_data_attributes,
|
44
44
|
}
|
@@ -35,7 +35,7 @@
|
|
35
35
|
<strong class="gem-c-step-nav-header__part-of">Part of</strong>
|
36
36
|
<% if path %>
|
37
37
|
<a href="<%= path %>"
|
38
|
-
class="gem-c-step-nav-header__title govuk-link gem-c-print-link"
|
38
|
+
class="gem-c-step-nav-header__title govuk-link gem-c-force-print-link-styles"
|
39
39
|
<% unless disable_ga4 %>
|
40
40
|
data-ga4-link='<%= ga4_data %>'
|
41
41
|
<% end %>
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<span class="gem-c-step-nav-related__pretitle"><%= pretitle %></span>
|
16
16
|
<% if links.length == 1 && !always_display_as_list %>
|
17
17
|
<a href="<%= links[0][:href] %>"
|
18
|
-
class="govuk-link gem-c-print-link"
|
18
|
+
class="govuk-link gem-c-force-print-link-styles"
|
19
19
|
<% unless disable_ga4
|
20
20
|
ga4_attributes = {
|
21
21
|
event_name: "navigation",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
<% links.each_with_index do |link, index| %>
|
38
38
|
<li class="gem-c-step-nav-related__link-item">
|
39
39
|
<a href="<%= link[:href] %>"
|
40
|
-
class="govuk-link gem-c-print-link"
|
40
|
+
class="govuk-link gem-c-force-print-link-styles"
|
41
41
|
<% unless disable_ga4
|
42
42
|
ga4_attributes = {
|
43
43
|
event_name: "navigation",
|