Fix dialog heading aria label (#11524)

Co-authored-by: Zack Barett <arnett.zackary@gmail.com>
This commit is contained in:
Bram Kragten
2022-02-03 15:54:37 +01:00
committed by GitHub
parent 0c6f647f53
commit 0540bae707
12 changed files with 42 additions and 34 deletions

View File

@@ -55,7 +55,11 @@ class DialogMediaPlayerBrowse extends LitElement {
escapeKeyAction
hideActions
flexContent
.heading=${true}
.heading=${!this._currentItem
? this.hass.localize(
"ui.components.media-browser.media-player-browser"
)
: this._currentItem.title}
@closed=${this.closeDialog}
>
<ha-header-bar slot="heading">