Skip to content

Commit

Permalink
Use new option select component
Browse files Browse the repository at this point in the history
  • Loading branch information
andysellick committed Sep 21, 2023
1 parent d7bb461 commit ae3a880
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
//= require govuk_publishing_components/components/error-summary
//= require govuk_publishing_components/components/govspeak
//= require govuk_publishing_components/components/metadata
//= require govuk_publishing_components/components/option-select
//= require govuk_publishing_components/components/radio
//= require govuk_publishing_components/analytics/explicit-cross-domain-links
//
Expand Down
5 changes: 1 addition & 4 deletions app/views/finders/_option_select_facet.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<% add_app_component_stylesheet("option-select") %>
<% add_gem_component_stylesheet("checkboxes") %>
<% cache_if option_select_facet.cacheable?, option_select_facet.cache_key do %>
<%= render partial: 'components/option_select', locals: {
<%= render partial: 'govuk_publishing_components/components/option_select', locals: {
:key => option_select_facet.key,
:title => option_select_facet.name,
:aria_controls_id => "js-search-results-info",
Expand Down
2 changes: 1 addition & 1 deletion features/step_definitions/filtering_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
Then(/^I can see filters based on the results$/) do
visit finder_path("mosw-reports")

within first(".app-c-option-select") do
within first(".gem-c-option-select") do
expect(page).to have_selector("input#walk_type-backward")
expect(page).to have_content("Hopscotch")
expect(page).to_not have_selector("input#organisations-ministry-of-silly-walks")
Expand Down

0 comments on commit ae3a880

Please sign in to comment.