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

View File

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