Add semantic heading to script editor (#13546)

This commit is contained in:
Steve Repsher 2022-09-01 10:19:08 -04:00 committed by GitHub
parent 2bf0c5d72d
commit 4511ded205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -331,11 +331,11 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
`
: html`
<div class="header">
<div class="name">
<h2 id="sequence-heading" class="name">
${this.hass.localize(
"ui.panel.config.script.editor.sequence"
)}
</div>
</h2>
<a
href=${documentationUrl(
this.hass,
@ -354,6 +354,8 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
</div>
<ha-automation-action
role="region"
aria-labelledby="sequence-heading"
.actions=${this._config.sequence}
@value-changed=${this._sequenceChanged}
.hass=${this.hass}