-
Notifications
You must be signed in to change notification settings - Fork 924
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert to putting the ARIA role in the <form> element
- Loading branch information
1 parent
9202064
commit 8b8d02f
Showing
1 changed file
with
17 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,35 @@ | ||
<section aria-label="Default search component"> | ||
<h2>Default</h2> | ||
|
||
<form class="usa-search"> | ||
<form class="usa-search" role="search"> | ||
<label class="usa-sr-only" for="search-field">Search</label> | ||
<div role="search"> | ||
<input class="usa-input" id="search-field" type="search" name="search"> | ||
<button class="usa-button" type="submit"> | ||
<span class="usa-search__submit-text">Search</span> | ||
</button> | ||
</div> | ||
<input class="usa-input" id="search-field" type="search" name="search"> | ||
<button class="usa-button" type="submit"> | ||
<span class="usa-search__submit-text">Search</span> | ||
</button> | ||
</form> | ||
</section> | ||
|
||
<section aria-label="Big search component"> | ||
<h2>Big</h2> | ||
|
||
<form class="usa-search usa-search--big"> | ||
<div role="search"> | ||
<label class="usa-sr-only" for="search-field-big">Search</label> | ||
<input class="usa-input" id="search-field-big" type="search" name="search"> | ||
<button class="usa-button" type="submit"> | ||
<span class="usa-search__submit-text">Search</span> | ||
</button> | ||
</div> | ||
<form class="usa-search usa-search--big" role="search"> | ||
<label class="usa-sr-only" for="search-field-big">Search</label> | ||
<input class="usa-input" id="search-field-big" type="search" name="search"> | ||
<button class="usa-button" type="submit"> | ||
<span class="usa-search__submit-text">Search</span> | ||
</button> | ||
</form> | ||
</section> | ||
|
||
<section aria-label="Small search component"> | ||
<h2>Small</h2> | ||
|
||
<form class="usa-search usa-search--small"> | ||
<div role="search"> | ||
<label class="usa-sr-only" for="search-field-small">Search</label> | ||
<input class="usa-input" id="search-field-small" type="search" name="search"> | ||
<button class="usa-button" type="submit"> | ||
<span class="usa-sr-only">Search</span> | ||
</button> | ||
</div> | ||
<form class="usa-search usa-search--small" role="search"> | ||
<label class="usa-sr-only" for="search-field-small">Search</label> | ||
<input class="usa-input" id="search-field-small" type="search" name="search"> | ||
<button class="usa-button" type="submit"> | ||
<span class="usa-sr-only">Search</span> | ||
</button> | ||
</form> | ||
</section> |