Skip to content

Commit

Permalink
chore: Fixing Focus Order by Rearranging Element Sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
amareshsm committed Dec 13, 2024
1 parent 3575fff commit 39b2664
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/_includes/components/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@
<p class="visually-hidden" id="search-hint">{{ site.blog_page.search.hint }}</p>
<div class="search__inner-input-wrapper">
<input type="search" id="search" class="search__input" autocomplete="off" aria-describedby="search-hint" pattern="\S+">
<a class="search_powered-by-wrapper" href="https://www.algolia.com/developers/?utm_source=eslint&amp;utm_medium=referral&amp;utm_content=powered_by&amp;utm_campaign=docsearch" target="_blank" rel="noopener noreferrer">
<div id="search-results" class="search-results"></div>
<button class="search__clear-btn" id="search__clear-btn" hidden>
<span class="visually-hidden">{{ site.blog_page.search.clear }}</span>
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true" focusable="false">
<path d="M9 3L3 9M3 3L9 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</button>
<a class="search_powered-by-wrapper"
href="https://www.algolia.com/developers/?utm_source=eslint&amp;utm_medium=referral&amp;utm_content=powered_by&amp;utm_campaign=docsearch"
target="_blank" rel="noopener noreferrer">
<div class="search__powered-by">
<span class="powered-by-text">Powered by</span>
<svg width="77" height="19" aria-label="Algolia" role="img" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -42,14 +51,7 @@
</svg>
</div>
</a>
<button class="search__clear-btn" id="search__clear-btn" hidden>
<span class="visually-hidden">{{ site.blog_page.search.clear }}</span>
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true" focusable="false">
<path d="M9 3L3 9M3 3L9 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</button>
</div>
</div>
<div id="search-results-announcement" class="visually-hidden" aria-live="polite" aria-atomic="true"></div>
<div id="search-results" class="search-results"></div>
</div>

0 comments on commit 39b2664

Please sign in to comment.