Skip to content

Commit 11c6b90

Browse files
wendevlinbramkragten
authored andcommitted
Fix dialog secondary button design (#26344)
1 parent f7a1759 commit 11c6b90

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

src/panels/calendar/dialog-calendar-event-editor.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { formatInTimeZone, toDate } from "date-fns-tz";
21
import {
32
addDays,
43
addHours,
54
addMilliseconds,
65
differenceInMilliseconds,
76
startOfHour,
87
} from "date-fns";
8+
import { formatInTimeZone, toDate } from "date-fns-tz";
99
import type { HassEntity } from "home-assistant-js-websocket";
1010
import type { CSSResultGroup } from "lit";
1111
import { LitElement, css, html, nothing } from "lit";
@@ -18,11 +18,11 @@ import { supportsFeature } from "../../common/entity/supports-feature";
1818
import { isDate } from "../../common/string/is_date";
1919
import "../../components/entity/ha-entity-picker";
2020
import "../../components/ha-alert";
21+
import "../../components/ha-button";
2122
import "../../components/ha-date-input";
2223
import { createCloseHeading } from "../../components/ha-dialog";
2324
import "../../components/ha-formfield";
2425
import "../../components/ha-switch";
25-
import "../../components/ha-button";
2626
import "../../components/ha-textarea";
2727
import "../../components/ha-textfield";
2828
import "../../components/ha-time-input";
@@ -282,6 +282,7 @@ class DialogCalendarEventEditor extends LitElement {
282282
? html`
283283
<ha-button
284284
slot="secondaryAction"
285+
appearance="plain"
285286
variant="danger"
286287
@click=${this._deleteEvent}
287288
.disabled=${this._submitting}

src/panels/config/backup/dialogs/dialog-local-backup-location.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import type { CSSResultGroup } from "lit";
22
import { css, html, LitElement, nothing } from "lit";
33
import { customElement, property, state } from "lit/decorators";
44
import { fireEvent } from "../../../../common/dom/fire_event";
5+
import "../../../../components/ha-alert";
56
import "../../../../components/ha-button";
67
import { createCloseHeading } from "../../../../components/ha-dialog";
78
import "../../../../components/ha-form/ha-form";
8-
import "../../../../components/ha-alert";
99
import type {
1010
HaFormSchema,
1111
SchemaUnion,
@@ -91,6 +91,7 @@ class LocalBackupLocationDialog extends LitElement {
9191
</ha-alert>
9292
<ha-button
9393
slot="secondaryAction"
94+
appearance="plain"
9495
@click=${this.closeDialog}
9596
dialogInitialFocus
9697
>

src/panels/config/integrations/integration-panels/zha/dialog-zha-change-channel.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ import { html, LitElement, nothing } from "lit";
33
import { customElement, property, state } from "lit/decorators";
44
import { fireEvent } from "../../../../../common/dom/fire_event";
55
import { stopPropagation } from "../../../../../common/dom/stop_propagation";
6-
import type { HassDialog } from "../../../../../dialogs/make-dialog-manager";
7-
import { changeZHANetworkChannel } from "../../../../../data/zha";
8-
import { showAlertDialog } from "../../../../../dialogs/generic/show-dialog-box";
9-
import { createCloseHeading } from "../../../../../components/ha-dialog";
10-
import type { HomeAssistant } from "../../../../../types";
116
import "../../../../../components/buttons/ha-progress-button";
127
import "../../../../../components/ha-alert";
138
import "../../../../../components/ha-button";
14-
import "../../../../../components/ha-select";
9+
import { createCloseHeading } from "../../../../../components/ha-dialog";
1510
import "../../../../../components/ha-list-item";
11+
import "../../../../../components/ha-select";
12+
import { changeZHANetworkChannel } from "../../../../../data/zha";
13+
import { showAlertDialog } from "../../../../../dialogs/generic/show-dialog-box";
14+
import type { HassDialog } from "../../../../../dialogs/make-dialog-manager";
15+
import type { HomeAssistant } from "../../../../../types";
1616
import type { ZHAChangeChannelDialogParams } from "./show-dialog-zha-change-channel";
1717

1818
const VALID_CHANNELS = [
@@ -128,6 +128,7 @@ class DialogZHAChangeChannel extends LitElement implements HassDialog {
128128
129129
<ha-button
130130
slot="secondaryAction"
131+
appearance="plain"
131132
@click=${this.closeDialog}
132133
.disabled=${this._migrationInProgress}
133134
>${this.hass.localize("ui.common.cancel")}</ha-button

0 commit comments

Comments
 (0)