Skip to content

Commit

Permalink
Use TagHelper in radio facet
Browse files Browse the repository at this point in the history
- credit to @floehopper
- GA4 data attributes should all now be implemented using a Ruby Hash, which will make setting it based on the facet object easier in a following commit
  • Loading branch information
andysellick committed Nov 29, 2023
1 parent 4ea037e commit 04667a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/finders/_radio_facet.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="facet-container" data-ga4-change-category="update-filter radio" data-ga4-section="" data-ga4-filter-parent>
<%= tag.div(class: "facet-container", data: { "ga4-change-category": "update-filter radio", "ga4-section": "", "ga4-filter-parent": "" }) do %>
<%= render "govuk_publishing_components/components/radio", {
name: radio_facet.key,
small: true,
items: radio_facet.options
} %>
</div>
<% end %>

0 comments on commit 04667a7

Please sign in to comment.