Skip to content

Commit 79ed6fa

Browse files
committed
Adds help boxes to no results page
Why are these changes being introduced: * This information is arguably more important on no results pages than on regular results pages, as users may need more guidance Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/USE-280 How does this address that need: * Adds `results_callouts` partial to no results section of display logic Document any side effects to this change: * This partial shows up in two places. A comment has been added to note this to make future changes easier reason about.
1 parent d38b405 commit 79ed6fa

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

app/assets/stylesheets/partials/_results.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@
261261
font-size: 1.6rem;
262262
line-height: $lh-xloose;
263263
margin: 0;
264+
margin-bottom: 1em;
264265
max-width: 760px;
265266

266267
a {

app/views/search/results.html.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<% end %>
3232
<% end %>
3333
</ol>
34+
<%# Note `results_callouts` is also displayed in no errors condition below %>
3435
<%= render partial: "results_callouts" %>
3536
</main>
3637
<%= render partial: "results_sidebar" %>
@@ -42,6 +43,9 @@
4243
<div id="results-layout-wrapper">
4344
<main id="results">
4445
<%= render partial: "no_results" %>
46+
47+
<%# Note `results_callouts` is also displayed in results and no errors condition above %>
48+
<%= render partial: "results_callouts" %>
4549
</main>
4650
</div>
4751

0 commit comments

Comments
 (0)