Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix option select styling #3167

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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