Improve settings page accessibility (#25885)

This commit is contained in:
karwosts 2025-06-25 06:35:14 -07:00 committed by GitHub
parent e7a04eb3d2
commit 3ab6a02994
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ class HaNavigationList extends LitElement {
>
<ha-svg-icon .path=${page.iconPath}></ha-svg-icon>
</div>
<span>${page.name}</span>
<span slot="headline">${page.name}</span>
${this.hasSecondary
? html`<span slot="supporting-text">${page.description}</span>`
: ""}

View File

@ -64,7 +64,7 @@ class HaConfigUpdates extends SubscribeMixin(LitElement) {
const updates = this.updateEntities;
return html`
<div class="title">
<div class="title" role="heading" aria-level="2">
${this.hass.localize("ui.panel.config.updates.title", {
count: this.total || this.updateEntities.length,
})}

View File

@ -41,7 +41,7 @@ class HaConfigRepairs extends LitElement {
const issues = this.repairsIssues;
return html`
<div class="title">
<div class="title" role="heading" aria-level="2">
${this.hass.localize("ui.panel.config.repairs.title", {
count: this.total || this.repairsIssues.length,
})}