fix tabindex for glance card (#17656)

This commit is contained in:
Bram Kragten 2023-08-21 16:15:08 +02:00 committed by GitHub
parent 92358b4859
commit 98d1a55d35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -300,7 +300,9 @@ export class HuiGlanceCard extends LitElement implements LovelaceCard {
hasDoubleClick: hasAction(entityConf.double_tap_action),
})}
tabindex=${ifDefined(
hasAction(entityConf.tap_action) ? "0" : undefined
!entityConf.tap_action || hasAction(entityConf.tap_action)
? "0"
: undefined
)}
>
${this._config!.show_name