govuk_publishing_components 25.2.2 → 25.2.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74b6d888231a927108558b8a25e000da57a26baba4e11d6770b633b9a7b58ea2
|
4
|
+
data.tar.gz: 2472c91a10dc527834c77982f7ad57585a337aaffd0bc62f5e8a7cffbcb77ed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ebde6b8dfca166b9185bd13c13a700e1139b819da0cd22e71fdbd856db1d9631f5faf67178a9f1a82ee30277408fc51a6226982df93a8288d3c8f193f9a808c
|
7
|
+
data.tar.gz: 5327b6f2d764d7a8231339f3912d67ba64e30243c6dde41c96b3fc455b9c7ba91032b9a0a559db24c33f981ab789bcc7c211879d7d78307a91313d0c31519723
|
data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb
CHANGED
@@ -90,9 +90,17 @@ show_navigation_menu_text = t("components.layout_super_navigation_header.menu_to
|
|
90
90
|
tracking_label = link[:label].downcase.gsub(/\s+/, "")
|
91
91
|
%>
|
92
92
|
<%= tag.li class: li_classes do %>
|
93
|
-
|
94
|
-
|
95
|
-
|
93
|
+
<%= link_to link[:label], link[:href], {
|
94
|
+
class: "gem-c-layout-super-navigation-header__navigation-item-link",
|
95
|
+
data: {
|
96
|
+
module: "gem-track-click",
|
97
|
+
track_action: "#{tracking_label}Link",
|
98
|
+
track_category: "headerClicked",
|
99
|
+
track_label: link[:href],
|
100
|
+
track_dimension: link[:label],
|
101
|
+
track_dimension_index: "29",
|
102
|
+
}
|
103
|
+
} %>
|
96
104
|
<% if has_children %>
|
97
105
|
<button
|
98
106
|
aria-controls="super-navigation-menu__section-<%= unique_id %>"
|
@@ -168,7 +176,7 @@ show_navigation_menu_text = t("components.layout_super_navigation_header.menu_to
|
|
168
176
|
data: {
|
169
177
|
module: "gem-track-click",
|
170
178
|
track_action: "#{tracking_label}Link",
|
171
|
-
|
179
|
+
track_category: "headerClicked",
|
172
180
|
track_label: item[:href],
|
173
181
|
track_dimension: item[:label],
|
174
182
|
track_dimension_index: "29",
|