Skip to content

Commit

Permalink
Fix option select styling
Browse files Browse the repository at this point in the history
  Always ensure the option-select and checkbox stylesheets are requested,
  otherwise the helper methods to add the stylesheets are not called when
  caching is used
  • Loading branch information
MartinJJones committed Sep 22, 2023
1 parent 387d9f3 commit c8d2004
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/views/finders/_option_select_facet.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<%#
Always ensure the option-select and checkbox stylesheets are requested,
otherwise the helper methods to include the stylesheets are not called when
caching is used
%>
<% add_gem_component_stylesheet("option-select") %>
<% add_gem_component_stylesheet("checkboxes") %>
<% cache_if option_select_facet.cacheable?, option_select_facet.cache_key do %>
<div data-ga4-change-category="update-filter checkbox" data-ga4-filter-parent data-ga4-section="<%= option_select_facet.name %>">
<%= render partial: 'govuk_publishing_components/components/option_select', locals: {
Expand Down

0 comments on commit c8d2004

Please sign in to comment.