mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Improve settings page accessibility (#25885)
This commit is contained in:
parent
e7a04eb3d2
commit
3ab6a02994
@ -44,7 +44,7 @@ class HaNavigationList extends LitElement {
|
|||||||
>
|
>
|
||||||
<ha-svg-icon .path=${page.iconPath}></ha-svg-icon>
|
<ha-svg-icon .path=${page.iconPath}></ha-svg-icon>
|
||||||
</div>
|
</div>
|
||||||
<span>${page.name}</span>
|
<span slot="headline">${page.name}</span>
|
||||||
${this.hasSecondary
|
${this.hasSecondary
|
||||||
? html`<span slot="supporting-text">${page.description}</span>`
|
? html`<span slot="supporting-text">${page.description}</span>`
|
||||||
: ""}
|
: ""}
|
||||||
|
@ -64,7 +64,7 @@ class HaConfigUpdates extends SubscribeMixin(LitElement) {
|
|||||||
const updates = this.updateEntities;
|
const updates = this.updateEntities;
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<div class="title">
|
<div class="title" role="heading" aria-level="2">
|
||||||
${this.hass.localize("ui.panel.config.updates.title", {
|
${this.hass.localize("ui.panel.config.updates.title", {
|
||||||
count: this.total || this.updateEntities.length,
|
count: this.total || this.updateEntities.length,
|
||||||
})}
|
})}
|
||||||
|
@ -41,7 +41,7 @@ class HaConfigRepairs extends LitElement {
|
|||||||
const issues = this.repairsIssues;
|
const issues = this.repairsIssues;
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<div class="title">
|
<div class="title" role="heading" aria-level="2">
|
||||||
${this.hass.localize("ui.panel.config.repairs.title", {
|
${this.hass.localize("ui.panel.config.repairs.title", {
|
||||||
count: this.total || this.repairsIssues.length,
|
count: this.total || this.repairsIssues.length,
|
||||||
})}
|
})}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user