govuk_publishing_components 34.11.0 → 34.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/govuk_publishing_components_manifest.js +75 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-form-tracker.js +8 -2
- data/app/assets/stylesheets/govuk_publishing_components/_individual_component_support.scss +10 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_big-number.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_character-count.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_date-input.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_details.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_devolved-nations.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-message.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_fieldset.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_file-upload.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_hint.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_label.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_select.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_signup-link.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_single-page-notification-button.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_skip-link.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_summary-list.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +1 -0
- data/app/models/govuk_publishing_components/audit_components.rb +55 -1
- data/app/views/govuk_publishing_components/audit/_components.html.erb +46 -1
- data/app/views/govuk_publishing_components/components/_accordion.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_attachment.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_attachment_link.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_back_link.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_big_number.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_button.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_cards.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_character_count.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_checkboxes.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_contents_list.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_contextual_guidance.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_date_input.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_details.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_devolved_nations.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_document_list.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_emergency_banner.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_error_alert.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_error_message.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_error_summary.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_feedback.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_fieldset.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_file_upload.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_govspeak.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/_govspeak_html_publication.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_heading.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_hint.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_image_card.html.erb +5 -3
- data/app/views/govuk_publishing_components/components/_input.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_inset_text.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_intervention.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_inverse_header.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_label.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +5 -1
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +5 -0
- data/app/views/govuk_publishing_components/components/_lead_paragraph.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_modal_dialogue.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_notice.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_organisation_logo.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_panel.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_phase_banner.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +6 -1
- data/app/views/govuk_publishing_components/components/_print_link.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_radio.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_related_navigation.html.erb +4 -0
- data/app/views/govuk_publishing_components/components/_reorderable_list.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_search.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_select.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_show_password.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_signup_link.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_skip_link.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_success_alert.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_summary_list.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_table.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/_tabs.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_textarea.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_title.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_warning_text.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/docs/related_navigation.yml +20 -0
- data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +15 -9
- data/config/locales/en.yml +1 -1
- data/lib/govuk_publishing_components/app_helpers/asset_helper.rb +86 -0
- data/lib/govuk_publishing_components/config.rb +3 -0
- data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +1 -1
- data/lib/govuk_publishing_components/railtie.rb +7 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/lib/govuk_publishing_components.rb +3 -0
- metadata +5 -2
@@ -34,12 +34,19 @@ module GovukPublishingComponents
|
|
34
34
|
private
|
35
35
|
|
36
36
|
def compile_data(path)
|
37
|
+
component_file_details = get_component_file_details(path)
|
38
|
+
helper_usage = get_helper_usage(component_file_details)
|
39
|
+
|
40
|
+
# remove the template file reference as not needed
|
41
|
+
component_file_details.map { |detail| detail.delete(:template_file) }
|
42
|
+
|
37
43
|
{
|
38
44
|
gem_found: true,
|
39
45
|
component_code: clean_files(@all_templates, @templates_full_path).sort,
|
40
46
|
components_containing_components: find_all_partials_in(@all_templates),
|
41
|
-
component_file_details:
|
47
|
+
component_file_details: component_file_details,
|
42
48
|
component_numbers: @component_numbers,
|
49
|
+
helper_usage: helper_usage,
|
43
50
|
}
|
44
51
|
end
|
45
52
|
|
@@ -96,6 +103,8 @@ module GovukPublishingComponents
|
|
96
103
|
type = detail[:type]
|
97
104
|
file = detail[:file]
|
98
105
|
details["#{type}_exists".to_sym] = false
|
106
|
+
# save the location of the template to later grep for helper use
|
107
|
+
details["#{type}_file".to_sym] = file if type == "template"
|
99
108
|
if File.file?(file)
|
100
109
|
# we don't have separate print stylesheets anymore
|
101
110
|
# so check the main stylesheet for print styles
|
@@ -215,5 +224,50 @@ module GovukPublishingComponents
|
|
215
224
|
|
216
225
|
link
|
217
226
|
end
|
227
|
+
|
228
|
+
def get_helper_usage(components)
|
229
|
+
helpers = [
|
230
|
+
{
|
231
|
+
name: "Brand helper",
|
232
|
+
link: "lib/govuk_publishing_components/app_helpers/brand_helper.rb",
|
233
|
+
match: /(GovukPublishingComponents::AppHelpers::BrandHelper.new)/,
|
234
|
+
used_by: [],
|
235
|
+
},
|
236
|
+
{
|
237
|
+
name: "Component wrapper helper",
|
238
|
+
link: "lib/govuk_publishing_components/presenters/component_wrapper_helper.rb",
|
239
|
+
match: /(GovukPublishingComponents::Presenters::ComponentWrapperHelper.new)/,
|
240
|
+
used_by: [],
|
241
|
+
},
|
242
|
+
{
|
243
|
+
name: "Heading helper",
|
244
|
+
link: "lib/govuk_publishing_components/presenters/heading_helper.rb",
|
245
|
+
match: /(GovukPublishingComponents::Presenters::HeadingHelper.new)/,
|
246
|
+
used_by: [],
|
247
|
+
},
|
248
|
+
{
|
249
|
+
name: "Shared helper",
|
250
|
+
link: "lib/govuk_publishing_components/presenters/shared_helper.rb",
|
251
|
+
match: /(GovukPublishingComponents::Presenters::SharedHelper.new)/,
|
252
|
+
used_by: [],
|
253
|
+
},
|
254
|
+
]
|
255
|
+
|
256
|
+
components.each do |component|
|
257
|
+
file = component[:template_file]
|
258
|
+
next unless File.file?(file)
|
259
|
+
|
260
|
+
helpers.each do |helper|
|
261
|
+
next unless File.foreach(file).grep(helper[:match]).present?
|
262
|
+
|
263
|
+
helper[:used_by] << {
|
264
|
+
name: component[:name],
|
265
|
+
link: component[:template_file].split("/components/")[1],
|
266
|
+
}
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
helpers
|
271
|
+
end
|
218
272
|
end
|
219
273
|
end
|
@@ -63,9 +63,54 @@
|
|
63
63
|
items: component_items
|
64
64
|
%>
|
65
65
|
|
66
|
+
<% helpers_by_component = capture do %>
|
67
|
+
<dl class="govuk-summary-list">
|
68
|
+
<% @components[:helper_usage].each do |helper| %>
|
69
|
+
<div class="govuk-summary-list__row">
|
70
|
+
<dt class="govuk-summary-list__key">
|
71
|
+
<a href="https://github.com/alphagov/govuk_publishing_components/blob/main/<%= helper[:link] %>" class="govuk-link"><%= helper[:name] %></a>
|
72
|
+
</dt>
|
73
|
+
<dd class="govuk-summary-list__value">
|
74
|
+
<details class="govuk-details" data-module="govuk-details">
|
75
|
+
<summary class="govuk-details__summary">
|
76
|
+
<span class="govuk-details__summary-text">
|
77
|
+
Used by <%= helper[:used_by].length %> components
|
78
|
+
</span>
|
79
|
+
</summary>
|
80
|
+
<div class="govuk-details__text">
|
81
|
+
<ul class="govuk-list govuk-list--bullet">
|
82
|
+
<% helper[:used_by].each do |component| %>
|
83
|
+
<% github_link = 'https://github.com/alphagov/govuk_publishing_components/tree/main/app/views/govuk_publishing_components/components/' %>
|
84
|
+
<li>
|
85
|
+
<a href="<%= github_link %><%= component[:link] %>" class="govuk-link"><%= component[:name] %></a>
|
86
|
+
</li>
|
87
|
+
<% end %>
|
88
|
+
</ul>
|
89
|
+
</div>
|
90
|
+
</details>
|
91
|
+
</dd>
|
92
|
+
</div>
|
93
|
+
<% end %>
|
94
|
+
</dl>
|
95
|
+
<% end %>
|
96
|
+
|
97
|
+
<%
|
98
|
+
component_items << {
|
99
|
+
heading: {
|
100
|
+
text: "Helpers by component",
|
101
|
+
},
|
102
|
+
summary: {
|
103
|
+
text: "Shows which components use common helpers",
|
104
|
+
},
|
105
|
+
content: {
|
106
|
+
html: helpers_by_component
|
107
|
+
},
|
108
|
+
}
|
109
|
+
%>
|
110
|
+
|
66
111
|
<%= render 'items_in_applications',
|
67
112
|
heading: 'Helpers by application',
|
68
|
-
summary: 'Shows any applications that use
|
113
|
+
summary: 'Shows any applications that use helpers from the components gem',
|
69
114
|
content: @components[:helpers_used_by_applications],
|
70
115
|
items: component_items
|
71
116
|
%>
|
@@ -1,4 +1,6 @@
|
|
1
1
|
<%
|
2
|
+
add_gem_component_stylesheet("big-number")
|
3
|
+
|
2
4
|
shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
|
3
5
|
big_number_helper = GovukPublishingComponents::Presenters::BigNumberHelper.new(local_assigns)
|
4
6
|
|
@@ -34,7 +36,7 @@
|
|
34
36
|
</span>
|
35
37
|
<% end %>
|
36
38
|
<% end %>
|
37
|
-
|
39
|
+
|
38
40
|
<%= tag.div class: classes, aria: aria do %>
|
39
41
|
<% unless href.nil? %>
|
40
42
|
<%= link_to big_number_value, href, class: "govuk-link gem-c-big-number__link", data: data_attributes %>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<%
|
2
|
+
add_gem_component_stylesheet("govspeak")
|
2
3
|
inverse ||= false
|
3
4
|
direction_class = "direction-#{direction}" if local_assigns.include?(:direction)
|
4
5
|
disable_youtube_expansions = local_assigns.fetch(:disable_youtube_expansions) if local_assigns.include?(:disable_youtube_expansions)
|
@@ -1,4 +1,6 @@
|
|
1
1
|
<%
|
2
|
+
add_gem_component_stylesheet("govspeak-html-publication")
|
3
|
+
|
2
4
|
govspeak_locals = {}
|
3
5
|
govspeak_locals[:content] = local_assigns.fetch(:content) if local_assigns.include?(:content)
|
4
6
|
govspeak_locals[:direction] = local_assigns.fetch(:direction) if local_assigns.include?(:direction)
|
@@ -1,4 +1,6 @@
|
|
1
1
|
<%
|
2
|
+
add_gem_component_stylesheet("image-card")
|
3
|
+
|
2
4
|
sizes ||= false
|
3
5
|
brand ||= false
|
4
6
|
|
@@ -17,7 +19,7 @@
|
|
17
19
|
heading_link_classes = %w[
|
18
20
|
gem-c-image-card__title-link
|
19
21
|
govuk-link
|
20
|
-
]
|
22
|
+
]
|
21
23
|
heading_link_classes << brand_helper.color_class
|
22
24
|
extra_link_classes = %w[
|
23
25
|
gem-c-image-card__list-item-link
|
@@ -59,8 +61,8 @@
|
|
59
61
|
%>
|
60
62
|
<% else %>
|
61
63
|
<%= link[:text] %>
|
62
|
-
<% end %>
|
63
|
-
</li>
|
64
|
+
<% end %>
|
65
|
+
</li>
|
64
66
|
<% end %>
|
65
67
|
</ul>
|
66
68
|
<% end %>
|
data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
<%
|
2
|
+
add_gem_component_stylesheet("layout-super-navigation-header")
|
3
|
+
|
2
4
|
logo_link ||= "https://www.gov.uk/"
|
3
5
|
logo_link_title ||= t("components.layout_super_navigation_header.logo_link_title")
|
4
6
|
logo_text = t("components.layout_super_navigation_header.logo_text")
|
@@ -262,6 +264,9 @@
|
|
262
264
|
<form
|
263
265
|
class="gem-c-layout-super-navigation-header__search-form"
|
264
266
|
id="search"
|
267
|
+
data-module="ga4-form-tracker"
|
268
|
+
data-ga4-form='{ "event_name": "search", "type": "header menu bar", "section": "Search GOV.UK", "action": "Search", "url": "/search/all" }'
|
269
|
+
data-ga4-form-include-text
|
265
270
|
action="/search"
|
266
271
|
method="get"
|
267
272
|
role="search"
|
data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
<%
|
1
|
+
<%
|
2
|
+
add_gem_component_stylesheet("previous-and-next-navigation")
|
3
|
+
|
4
|
+
if local_assigns.include?(:next_page) || local_assigns.include?(:previous_page)
|
5
|
+
%>
|
6
|
+
|
2
7
|
<nav
|
3
8
|
class="govuk-pagination govuk-pagination--block"
|
4
9
|
role="navigation"
|
@@ -7,6 +7,10 @@
|
|
7
7
|
data[:module] << " ga4-link-tracker" if ga4_tracking
|
8
8
|
%>
|
9
9
|
|
10
|
+
<%
|
11
|
+
add_gem_component_stylesheet("related-navigation")
|
12
|
+
%>
|
13
|
+
|
10
14
|
<% if related_nav_helper.related_navigation? %>
|
11
15
|
<% random = SecureRandom.hex(4) %>
|
12
16
|
<%= tag.div(class: "gem-c-related-navigation", data: data) do %>
|