Skip to content

Commit

Permalink
Apply bootstrap classes without requiring SASS
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Dec 9, 2024
1 parent c5da9cf commit e78c59a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions app/assets/stylesheets/spotlight/_blacklight_overrides.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
.submit-search-text {
@extend .sr-only !optional;
@extend .visually-hidden !optional;
}

.search-query-form {
z-index: 1;

.input-group {
width: 100%;
}

.search-btn {
max-height: 2.375rem;
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/spotlight/browse/_search_box.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<%= blacklight_icon('highlight_off') %>
</button>
<button type="submit" class="btn btn-primary search-btn" id="browse-search">
<span class="submit-search-text"><%= t(:'.submit') %></span>
<span class="submit-search-text sr-only visually-hidden"><%= t(:'.submit') %></span>
<%= blacklight_icon('search', aria_hidden: true) %>
</button>
</div>
Expand Down

0 comments on commit e78c59a

Please sign in to comment.