Compare commits

...

5 Commits

Author SHA1 Message Date
Aidan Timson
d3a7bafe7b Aria label (pending wa update) 2026-04-29 13:31:59 +01:00
Aidan Timson
4cf60854cc Make fix in button instead (probably should update upstream) 2026-04-29 13:18:58 +01:00
Aidan Timson
d695cc65a7 Add hidden content for label to satisfy ally review 2026-04-29 11:59:49 +01:00
Aidan Timson
2eca0c8850 use aria-hidden 2026-04-29 11:57:26 +01:00
Aidan Timson
ef21af6f05 Ally: Add aria labels to ha-icon-button and hui-root 2026-04-29 11:07:28 +01:00
2 changed files with 6 additions and 1 deletions

View File

@@ -53,7 +53,10 @@ export class HaIconButton extends LitElement {
.download=${this.download}
>
${this.path
? html`<ha-svg-icon .path=${this.path}></ha-svg-icon>`
? html`<ha-svg-icon
aria-hidden="true"
.path=${this.path}
></ha-svg-icon>`
: html`<span><slot></slot></span>`}
</ha-button>
`;

View File

@@ -409,6 +409,8 @@ class HUIRoot extends LitElement {
slot="actionItems"
.id="button-${index}"
.path=${item.icon}
.label=${label}
hide-title
@click=${item.buttonAction}
></ha-icon-button>
<ha-tooltip placement="bottom" .for="button-${index}">