Remove toggles from ha-icon-button (#24331)

This commit is contained in:
Wendelin 2025-02-20 12:14:40 +01:00 committed by GitHub
parent 9073282174
commit fb1ee2ed1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 0 additions and 6 deletions

View File

@ -40,7 +40,6 @@ export class HaCopyTextfield extends LitElement {
${this.maskedValue
? html`<ha-icon-button
class="toggle-unmasked"
toggles
.label=${this.hass.localize(
`ui.common.${this._showMasked ? "show" : "hide"}`
)}

View File

@ -80,7 +80,6 @@ export class HaFormString extends LitElement implements HaFormElement {
if (!this.isPassword) return nothing;
return html`
<ha-icon-button
toggles
.label=${this.localize?.(
`${this.localizeBaseKey}.${
this.unmaskedPassword ? "hide_password" : "show_password"

View File

@ -132,7 +132,6 @@ export class HaPasswordField extends LitElement {
@change=${this._handleChangeEvent}
></ha-textfield>
<ha-icon-button
toggles
.label=${this.hass?.localize(
this._unmaskedPassword
? "ui.components.selectors.text.hide_password"

View File

@ -95,7 +95,6 @@ export class HaTextSelector extends LitElement {
></ha-textfield>
${this.selector.text?.type === "password"
? html`<ha-icon-button
toggles
.label=${this.hass?.localize(
this._unmaskedPassword
? "ui.components.selectors.text.hide_password"

View File

@ -153,7 +153,6 @@ class ConfigUrlForm extends LitElement {
? html`
<ha-icon-button
class="toggle-unmasked-url"
toggles
.label=${this.hass.localize(
`ui.panel.config.common.${this._unmaskedExternalUrl ? "hide" : "show"}_url`
)}
@ -254,7 +253,6 @@ class ConfigUrlForm extends LitElement {
? html`
<ha-icon-button
class="toggle-unmasked-url"
toggles
.label=${this.hass.localize(
`ui.panel.config.common.${this._unmaskedInternalUrl ? "hide" : "show"}_url`
)}