mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
A11Y: update clickable search dropdown tips to be buttons (#29762)
This commit is contained in:
@@ -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>
|
||||
@@ -326,6 +326,7 @@ $search-pad-horizontal: 0.5em;
|
||||
margin-right: 4px;
|
||||
padding: 2px 4px;
|
||||
display: inline-block;
|
||||
border: none;
|
||||
&.tip-clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user