mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Improve settings page accessibility (No. 2) (#25965)
This commit is contained in:
parent
f08877437e
commit
1f8a9e4caf
@ -54,6 +54,9 @@ class HaConfigNavigation extends LitElement {
|
|||||||
`,
|
`,
|
||||||
}));
|
}));
|
||||||
return html`
|
return html`
|
||||||
|
<div class="visually-hidden" role="heading" aria-level="2">
|
||||||
|
${this.hass.localize("panel.config")}
|
||||||
|
</div>
|
||||||
<ha-navigation-list
|
<ha-navigation-list
|
||||||
has-secondary
|
has-secondary
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
@ -68,6 +71,17 @@ class HaConfigNavigation extends LitElement {
|
|||||||
ha-navigation-list {
|
ha-navigation-list {
|
||||||
--navigation-list-item-title-font-size: var(--ha-font-size-l);
|
--navigation-list-item-title-font-size: var(--ha-font-size-l);
|
||||||
}
|
}
|
||||||
|
/* Accessibility */
|
||||||
|
.visually-hidden {
|
||||||
|
position: absolute;
|
||||||
|
overflow: hidden;
|
||||||
|
clip: rect(0 0 0 0);
|
||||||
|
height: 1px;
|
||||||
|
width: 1px;
|
||||||
|
margin: -1px;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ class HaConfigUpdates extends SubscribeMixin(LitElement) {
|
|||||||
></ha-spinner>`
|
></ha-spinner>`
|
||||||
: nothing}
|
: nothing}
|
||||||
</div>
|
</div>
|
||||||
<span
|
<span slot="headline"
|
||||||
>${deviceEntry
|
>${deviceEntry
|
||||||
? computeDeviceNameDisplay(deviceEntry, this.hass)
|
? computeDeviceNameDisplay(deviceEntry, this.hass)
|
||||||
: entity.attributes.friendly_name}</span
|
: entity.attributes.friendly_name}</span
|
||||||
|
Loading…
x
Reference in New Issue
Block a user