mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Improve password show/hide buttons (#18176)
This commit is contained in:
parent
b3f1783269
commit
8f1a6ef1b1
@ -26,14 +26,13 @@ export class HaAuthFormString extends HaFormString {
|
|||||||
}
|
}
|
||||||
ha-auth-form-string ha-icon-button {
|
ha-auth-form-string ha-icon-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1em;
|
top: 8px;
|
||||||
right: 12px;
|
right: 8px;
|
||||||
--mdc-icon-button-size: 24px;
|
|
||||||
color: var(--secondary-text-color);
|
|
||||||
}
|
|
||||||
ha-auth-form-string ha-icon-button {
|
|
||||||
inset-inline-start: initial;
|
inset-inline-start: initial;
|
||||||
inset-inline-end: 12px;
|
inset-inline-end: 8px;
|
||||||
|
--mdc-icon-button-size: 40px;
|
||||||
|
--mdc-icon-size: 20px;
|
||||||
|
color: var(--secondary-text-color);
|
||||||
direction: var(--direction);
|
direction: var(--direction);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -63,7 +62,7 @@ export class HaAuthFormString extends HaFormString {
|
|||||||
.validationMessage=${this.schema.required ? "Required" : undefined}
|
.validationMessage=${this.schema.required ? "Required" : undefined}
|
||||||
@input=${this._valueChanged}
|
@input=${this._valueChanged}
|
||||||
@change=${this._valueChanged}
|
@change=${this._valueChanged}
|
||||||
></ha-auth-textfield>
|
></ha-auth-textfield>
|
||||||
${this.renderIcon()}
|
${this.renderIcon()}
|
||||||
</ha-auth-textfield>
|
</ha-auth-textfield>
|
||||||
`;
|
`;
|
||||||
|
@ -138,15 +138,13 @@ export class HaFormString extends LitElement implements HaFormElement {
|
|||||||
}
|
}
|
||||||
ha-icon-button {
|
ha-icon-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1em;
|
top: 8px;
|
||||||
right: 12px;
|
right: 8px;
|
||||||
--mdc-icon-button-size: 24px;
|
|
||||||
color: var(--secondary-text-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
ha-icon-button {
|
|
||||||
inset-inline-start: initial;
|
inset-inline-start: initial;
|
||||||
inset-inline-end: 12px;
|
inset-inline-end: 8px;
|
||||||
|
--mdc-icon-button-size: 40px;
|
||||||
|
--mdc-icon-size: 20px;
|
||||||
|
color: var(--secondary-text-color);
|
||||||
direction: var(--direction);
|
direction: var(--direction);
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -111,13 +111,13 @@ export class HaTextSelector extends LitElement {
|
|||||||
}
|
}
|
||||||
ha-icon-button {
|
ha-icon-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10px;
|
top: 8px;
|
||||||
right: 10px;
|
right: 8px;
|
||||||
--mdc-icon-button-size: 36px;
|
inset-inline-start: initial;
|
||||||
|
inset-inline-end: 8px;
|
||||||
|
--mdc-icon-button-size: 40px;
|
||||||
--mdc-icon-size: 20px;
|
--mdc-icon-size: 20px;
|
||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
inset-inline-start: initial;
|
|
||||||
inset-inline-end: 10px;
|
|
||||||
direction: var(--direction);
|
direction: var(--direction);
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user