Make history page title a semantic heading (#51527)

This commit is contained in:
JamesFromIT
2026-04-13 09:39:50 +01:00
committed by GitHub
parent 2edb0325aa
commit d220eba9f7

View File

@@ -136,7 +136,9 @@ class HaPanelHistory extends LitElement {
.narrow=${this.narrow}
></ha-menu-button>
`}
<div slot="title">${this.hass.localize("panel.history")}</div>
<h1 class="page-title" slot="title">
${this.hass.localize("panel.history")}
</h1>
${entitiesSelected
? html`
<ha-icon-button
@@ -627,6 +629,12 @@ class HaPanelHistory extends LitElement {
overflow-y: visible;
}
.page-title {
font-size: inherit;
margin: inherit;
line-height: inherit;
}
.content {
height: calc(
100vh - var(--header-height, 0px) - var(