A11Y: update clickable search dropdown tips to be buttons (#29762)

This commit is contained in:
Kris
2024-11-14 16:23:43 -05:00
committed by GitHub
parent 2ac1894292
commit 5f130b2971
2 changed files with 5 additions and 4 deletions

View File

@@ -1,16 +1,16 @@
<li class="search-random-quick-tip">
<span
<button
class={{concat-class
"tip-label"
(if this.randomTip.clickable "tip-clickable")
}}
role="button"
{{on "click" this.tipSelected}}
aria-describedby="tip-description"
>
{{this.randomTip.label}}
</span>
</button>
<span class="tip-description">
<span id="tip-description">
{{this.randomTip.description}}
</span>
</li>

View File

@@ -326,6 +326,7 @@ $search-pad-horizontal: 0.5em;
margin-right: 4px;
padding: 2px 4px;
display: inline-block;
border: none;
&.tip-clickable {
cursor: pointer;
}