Skip to content

Commit

Permalink
Added aria-label to default.hbs' search button
Browse files Browse the repository at this point in the history
no issue
- Improve accessibility
- Improve SEO (by improving accessibility)
  • Loading branch information
Tauromachian authored and minimaluminium committed Jan 2, 2024
1 parent 4c6d33f commit 7a79002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
<div class="gh-head-actions">
{{#unless @site.members_enabled}}
{{^match @custom.navigation_layout "Stacked"}}
<button class="gh-search gh-icon-btn" data-ghost-search>{{> "icons/search"}}</button>
<button class="gh-search gh-icon-btn" aria-label="Search this site" data-ghost-search>{{> "icons/search"}}</button>
{{/match}}
{{else}}
<button class="gh-search gh-icon-btn" data-ghost-search>{{> "icons/search"}}</button>
<button class="gh-search gh-icon-btn" aria-label="Search this site" data-ghost-search>{{> "icons/search"}}</button>
<div class="gh-head-members">
{{#unless @member}}
{{#unless @site.members_invite_only}}
Expand Down

0 comments on commit 7a79002

Please sign in to comment.