1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-04-02 00:27:49 +01:00

Remove unused ha-textfields (#30296)

This commit is contained in:
Wendelin
2026-03-24 15:45:47 +01:00
committed by GitHub
parent 9470863808
commit c506fa8990
12 changed files with 6 additions and 42 deletions

View File

@@ -9,7 +9,6 @@ import "./ha-expansion-panel";
import "./ha-items-display-editor";
import type { DisplayItem, DisplayValue } from "./ha-items-display-editor";
import "./ha-svg-icon";
import "./ha-textfield";
export interface AreasDisplayValue {
hidden?: string[];

View File

@@ -15,7 +15,6 @@ import "./ha-floor-icon";
import "./ha-items-display-editor";
import type { DisplayItem, DisplayValue } from "./ha-items-display-editor";
import "./ha-svg-icon";
import "./ha-textfield";
export interface AreasFloorsDisplayValue {
areas_display?: {

View File

@@ -199,11 +199,6 @@ export class HaFormMultiSelect extends LitElement implements HaFormElement {
padding-inline-start: initial;
direction: var(--direction);
}
ha-textfield {
display: block;
width: 100%;
pointer-events: none;
}
ha-icon-button {
color: var(--input-dropdown-icon-color);
position: absolute;

View File

@@ -216,9 +216,6 @@ export class CloudStepSignin extends LitElement {
:host {
display: block;
}
ha-textfield {
display: block;
}
`,
];
}

View File

@@ -202,10 +202,6 @@ class OnboardingCoreConfig extends LitElement {
line-height: var(--ha-line-height-condensed);
}
ha-textfield {
display: block;
}
.flex {
flex: 1;
}

View File

@@ -141,9 +141,6 @@ class ConfirmEventDialogBox extends LitElement {
/* Place above other dialogs */
--dialog-z-index: 104;
}
ha-textfield {
width: 100%;
}
`;
}

View File

@@ -2,7 +2,6 @@ import type { CSSResultGroup } from "lit";
import { css, html, LitElement } from "lit";
import { customElement, property, query, queryAll } from "lit/decorators";
import { fireEvent } from "../../../../../common/dom/fire_event";
import "../../../../../components/ha-textfield";
import type { Action, IfAction } from "../../../../../data/script";
import { haStyle } from "../../../../../resources/styles";
import type { HomeAssistant } from "../../../../../types";

View File

@@ -1,9 +1,8 @@
import type { CSSResultGroup } from "lit";
import { css, html, LitElement } from "lit";
import { html, LitElement } from "lit";
import { customElement, property, query } from "lit/decorators";
import memoizeOne from "memoize-one";
import { fireEvent } from "../../../../../common/dom/fire_event";
import "../../../../../components/ha-textfield";
import type { RepeatAction } from "../../../../../data/script";
import { haStyle } from "../../../../../resources/styles";
import type { HomeAssistant } from "../../../../../types";
@@ -172,14 +171,7 @@ export class HaRepeatAction extends LitElement implements ActionElement {
}
static get styles(): CSSResultGroup {
return [
haStyle,
css`
ha-textfield {
margin-top: 16px;
}
`,
];
return [haStyle];
}
private _getSelectorElements() {

View File

@@ -1,17 +1,16 @@
import memoizeOne from "memoize-one";
import { css, html, LitElement } from "lit";
import { html, LitElement } from "lit";
import { customElement, property } from "lit/decorators";
import { fireEvent } from "../../../../../common/dom/fire_event";
import type { LocalizeFunc } from "../../../../../common/translations/localize";
import "../../../../../components/ha-check-list-item";
import "../../../../../components/ha-form/ha-form";
import type { SchemaUnion } from "../../../../../components/ha-form/types";
import "../../../../../components/ha-icon-button";
import "../../../../../components/ha-textfield";
import type { PersistentNotificationTrigger } from "../../../../../data/automation";
import type { HomeAssistant } from "../../../../../types";
import type { TriggerElement } from "../ha-automation-trigger-row";
import type { LocalizeFunc } from "../../../../../common/translations/localize";
import type { SchemaUnion } from "../../../../../components/ha-form/types";
import "../../../../../components/ha-form/ha-form";
const DEFAULT_UPDATE_TYPES = ["added", "removed"];
const DEFAULT_NOTIFICATION_ID = "";
@@ -104,12 +103,6 @@ export class HaPersistentNotificationTrigger
this.hass.localize(
`ui.panel.config.automation.editor.triggers.type.persistent_notification.${schema.name}`
);
static styles = css`
ha-textfield {
display: block;
}
`;
}
declare global {

View File

@@ -250,7 +250,6 @@ export abstract class HaBlueprintGenericEditor extends LitElement {
.blueprint-picker-container {
padding: 0 16px 16px;
}
ha-textfield,
ha-blueprint-picker {
display: block;
}

View File

@@ -168,7 +168,6 @@ class HaTimerForm extends LitElement {
.form {
color: var(--primary-text-color);
}
ha-textfield,
ha-duration-input {
display: block;
margin: 8px 0;

View File

@@ -6,7 +6,6 @@ import { fireEvent } from "../../../common/dom/fire_event";
import "../../../components/ha-dialog-footer";
import "../../../components/ha-form/ha-form";
import type { SchemaUnion } from "../../../components/ha-form/types";
import "../../../components/ha-textfield";
import "../../../components/ha-button";
import "../../../components/ha-dialog";
import { adminChangePassword } from "../../../data/auth";