app/components/blacklight/search_button_component.rb in blacklight-7.40.0 vs app/components/blacklight/search_button_component.rb in blacklight-8.0.0.beta1

- old
+ new

@@ -1,17 +1,17 @@ # frozen_string_literal: true module Blacklight - class SearchButtonComponent < ::ViewComponent::Base + class SearchButtonComponent < Blacklight::Component def initialize(text:, id:) @text = text @id = id end def call tag.button(class: 'btn btn-primary search-btn', type: 'submit', id: @id) do - tag.span(@text, class: "submit-search-text") + - blacklight_icon(:search, aria_hidden: true) + tag.span(@text, class: "visually-hidden-sm me-sm-1 submit-search-text") + + render(Blacklight::Icons::SearchComponent.new) end end end end