Skip to content

Commit

Permalink
Add banner text, begin styling
Browse files Browse the repository at this point in the history
Co-authored-by: Robert-Anthony Lee-Faison <leefaisonr@users.noreply.github.com>
  • Loading branch information
sandbergja and leefaisonr committed Nov 9, 2023
1 parent 3aef33b commit b1d1543
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
@import 'components/request';
@import 'components/search';
@import 'components/search--advanced';
@import 'components/search-banner.scss';
@import 'components/search-options';
@import 'components/search-results';
@import 'components/skip-links';
Expand Down
3 changes: 3 additions & 0 deletions app/assets/stylesheets/components/search-banner.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#results-banner {
background-color: #BBCDE5;
}
2 changes: 2 additions & 0 deletions app/views/catalog/_search_results.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
<%= render 'constraints' %>
<% end %>
<%= render 'search_results_banner' if Flipflop.search_result_form? %>
<%= render 'search_header' %>

<h2 class="sr-only visually-hidden"><%= t('blacklight.search.search_results') %></h2>
Expand Down
4 changes: 4 additions & 0 deletions app/views/catalog/_search_results_banner.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div role="alert" id="results-banner">
We are working to address bias in the library's search results. If these results
appear biased, please let us know!
</div>

0 comments on commit b1d1543

Please sign in to comment.