A11Y: improve markup of 404 page search form (#26322)
This commit is contained in:
parent
113b4246e6
commit
2f307b8f54
|
@ -53,3 +53,11 @@
|
|||
flex-basis: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.page-not-found-search {
|
||||
label {
|
||||
color: var(--primary);
|
||||
font-size: var(--font-up-3);
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,13 +21,11 @@
|
|||
<%- unless @hide_search%>
|
||||
<div class="row">
|
||||
<div class="page-not-found-search">
|
||||
<h2><%= t 'page_not_found.search_title' %></h2>
|
||||
<p>
|
||||
<form action='<%= path "/search" %>' id='discourse-search'>
|
||||
<input type="text" name="q" value="<%= @slug %>">
|
||||
<button class="btn btn-primary"><%= t 'page_not_found.search_button' %></button>
|
||||
</form>
|
||||
</p>
|
||||
<form action='<%= path "/search" %>' id='discourse-search'>
|
||||
<label for="search-input"><%= t 'page_not_found.search_title' %></label>
|
||||
<input type="text" id="search-input" name="q" value="<%= @slug %>">
|
||||
<button class="btn btn-primary"><%= t 'page_not_found.search_button' %></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue