Skip to content

Commit e0eadf1

Browse files
authored
Merge pull request #269 from MITLibraries/use-151
USE-151: Changed h3 above the search input to label
2 parents 63524f1 + 3497a9b commit e0eadf1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/assets/stylesheets/partials/_search.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@
77
margin: 0;
88
padding-bottom: 24px;
99

10-
h3 {
10+
label {
1111
font-size: 1.8rem;
1212
margin-bottom: 12px;
13+
font-weight: $fw-medium;
14+
display: block;
15+
line-height: 1;
1316
}
1417

1518
.form-wrapper {

app/views/search/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<form id="search-form" action="<%= results_path %>" method="get" role="search">
2-
<h3>What can we help you find?</h3>
2+
<label for="basic-search-main">What can we help you find?</label>
33
<div class="form-wrapper">
44
<input id="basic-search-main" type="search" class="field field-text basic-search-input" name="q" title="Keyword anywhere" placeholder="Search for anything" value="<%= params[:q] %>" required>
55
<input id="tab-to-target" type="hidden" name="tab" value="<%= @active_tab %>">

0 commit comments

Comments
 (0)