mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Set initial focus for some more dialogs (#11676)
This commit is contained in:
parent
db33c38e21
commit
7f90ffa82f
@ -83,6 +83,7 @@ class DialogConfigEntrySystemOptions extends LitElement {
|
||||
.checked=${!this._disableNewEntities}
|
||||
@change=${this._disableNewEntitiesChanged}
|
||||
.disabled=${this._submitting}
|
||||
dialogInitialFocus
|
||||
></ha-switch>
|
||||
</ha-formfield>
|
||||
${this._allowUpdatePolling()
|
||||
|
@ -71,6 +71,7 @@ class DialogMQTTDeviceDebugInfo extends LitElement {
|
||||
<ha-switch
|
||||
.checked=${this._showDeserialized}
|
||||
@change=${this._showDeserializedChanged}
|
||||
dialogInitialFocus
|
||||
>
|
||||
</ha-switch>
|
||||
</ha-formfield>
|
||||
|
@ -104,7 +104,7 @@ class DialogSystemLogDetail extends LitElement {
|
||||
)}
|
||||
</ha-alert>`
|
||||
: ""}
|
||||
<div class="contents">
|
||||
<div class="contents" tabindex="-1" dialogInitialFocus>
|
||||
<p>
|
||||
Logger: ${item.name}<br />
|
||||
Source: ${item.source.join(":")}
|
||||
@ -227,6 +227,7 @@ class DialogSystemLogDetail extends LitElement {
|
||||
}
|
||||
.contents {
|
||||
padding: 16px;
|
||||
outline: none;
|
||||
}
|
||||
.error {
|
||||
color: var(--error-color);
|
||||
|
@ -111,6 +111,7 @@ export class DialogAddUser extends LitElement {
|
||||
.errorMessage=${this.hass.localize("ui.common.error_required")}
|
||||
@value-changed=${this._handleValueChanged}
|
||||
@blur=${this._maybePopulateUsername}
|
||||
dialogInitialFocus
|
||||
></paper-input>`
|
||||
: ""}
|
||||
<paper-input
|
||||
@ -125,6 +126,7 @@ export class DialogAddUser extends LitElement {
|
||||
autocapitalize="none"
|
||||
@value-changed=${this._handleValueChanged}
|
||||
.errorMessage=${this.hass.localize("ui.common.error_required")}
|
||||
dialogInitialFocus
|
||||
></paper-input>
|
||||
|
||||
<paper-input
|
||||
|
@ -65,6 +65,7 @@ export class DialogStatisticsFixUnitsChanged extends LitElement {
|
||||
name="action"
|
||||
.checked=${this._action === "update"}
|
||||
@change=${this._handleActionChanged}
|
||||
dialogInitialFocus
|
||||
></ha-radio>
|
||||
</ha-formfield>
|
||||
<ha-formfield
|
||||
|
@ -47,7 +47,11 @@ export class DialogStatisticsFixUnsupportedUnitMetadata extends LitElement {
|
||||
${this._params.issue.data.supported_unit}?
|
||||
</p>
|
||||
|
||||
<mwc-button slot="primaryAction" @click=${this._fixIssue}>
|
||||
<mwc-button
|
||||
slot="primaryAction"
|
||||
@click=${this._fixIssue}
|
||||
dialogInitialFocus
|
||||
>
|
||||
Fix
|
||||
</mwc-button>
|
||||
<mwc-button slot="secondaryAction" @click=${this.closeDialog}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user