mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Make quick bar more keyboard accessible (#24321)
This commit is contained in:
parent
f3c9e4a4a0
commit
f3d614b0d3
@ -251,6 +251,7 @@ export class QuickBar extends LitElement {
|
||||
<mwc-list>
|
||||
${this._opened
|
||||
? html`<lit-virtualizer
|
||||
tabindex="-1"
|
||||
scroller
|
||||
@keydown=${this._handleListItemKeyDown}
|
||||
@rangechange=${this._handleRangeChanged}
|
||||
@ -326,6 +327,7 @@ export class QuickBar extends LitElement {
|
||||
.twoline=${Boolean(item.area)}
|
||||
.item=${item}
|
||||
index=${ifDefined(index)}
|
||||
tabindex="0"
|
||||
>
|
||||
<span>${item.primaryText}</span>
|
||||
${item.area
|
||||
@ -346,6 +348,7 @@ export class QuickBar extends LitElement {
|
||||
.item=${item}
|
||||
index=${ifDefined(index)}
|
||||
graphic="icon"
|
||||
tabindex="0"
|
||||
>
|
||||
${item.iconPath
|
||||
? html`
|
||||
@ -375,6 +378,7 @@ export class QuickBar extends LitElement {
|
||||
index=${ifDefined(index)}
|
||||
class="command-item"
|
||||
hasMeta
|
||||
tabindex="0"
|
||||
>
|
||||
<span>
|
||||
<ha-label
|
||||
|
Loading…
x
Reference in New Issue
Block a user