Skip to content

Commit 0ed5fa1

Browse files
committed
Add some aria roles to search form and search alert
1 parent ba434b7 commit 0ed5fa1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

root/home.tx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<img src="/static/images/metacpan-logo.svg" alt="MetaCPAN" />
3434
</div>
3535
<h4>A search engine for <a href="https://www.cpan.org">CPAN</a></h4>
36-
<form action="/search" class="search-form form-horizontal">
36+
<form action="/search" class="search-form form-horizontal" role="search">
3737
<input type="hidden" name="size" id="metacpan_search-size" value="20">
3838
<div class="form-group">
3939
<div class="search-group">

root/no_result.tx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<div class="no-results">
66
<h3 class="search-results-header">No search results for [% $search_query %]</h3>
77
%% if $suggest {
8-
<div class="alert alert-danger">
9-
Did you mean :
8+
<div class="alert alert-danger" role="alert">
9+
Did you mean:
1010
<a href="/search?q=[% $suggest | uri %]">[% $suggest %]</a>
1111
</div>
1212
%% }

0 commit comments

Comments
 (0)