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: cd4ab6f1a2983ed60befeb3d8e91dbf8d51f5d310c5f0d582d835711c6008c6e
4
- data.tar.gz: f51242d2587a0cdbb6309af3beb647b86db9cf87907cb9d6d50d4dbec2c3e634
3
+ metadata.gz: 74b6d888231a927108558b8a25e000da57a26baba4e11d6770b633b9a7b58ea2
4
+ data.tar.gz: 2472c91a10dc527834c77982f7ad57585a337aaffd0bc62f5e8a7cffbcb77ed9
5
5
  SHA512:
6
- metadata.gz: bbc69826dec61f4ac6d5d0c1ff0d9df3479ed278b1ca5d256a208140732c4271eaa0d7f57f1e8cab554486637e2f4ac82e2a4c599db8c85955f1e7a4759d7e9e
7
- data.tar.gz: 3aa7c1d878348dab7673c60081875f2854efd24c5a88504e93e5999c8e344fd47420b19ee4e8a40bc29e1c48ab99f57fb010c4900390884d3adc59070248194b
6
+ metadata.gz: 2ebde6b8dfca166b9185bd13c13a700e1139b819da0cd22e71fdbd856db1d9631f5faf67178a9f1a82ee30277408fc51a6226982df93a8288d3c8f193f9a808c
7
+ data.tar.gz: 5327b6f2d764d7a8231339f3912d67ba64e30243c6dde41c96b3fc455b9c7ba91032b9a0a559db24c33f981ab789bcc7c211879d7d78307a91313d0c31519723
@@ -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
- <a class="gem-c-layout-super-navigation-header__navigation-item-link" href="<%= link[:href] %>">
94
- <%= link[:label] %>
95
- </a>
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
- track_cateogry: "headerClicked",
179
+ track_category: "headerClicked",
172
180
  track_label: item[:href],
173
181
  track_dimension: item[:label],
174
182
  track_dimension_index: "29",
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "25.2.2".freeze
2
+ VERSION = "25.2.3".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: 25.2.2
4
+ version: 25.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev