From 89e9316a40cd0c77beedd675425bdf40c0c0ca4f Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Tue, 28 Jan 2025 17:04:12 +0300 Subject: [PATCH] Fix typo & layout in ha-assist-chip (#23785) * fix typo fot slot name * make font-size same as for label * remove unneeded margin-top --- src/components/chips/ha-assist-chip.ts | 3 ++- src/panels/lovelace/components/hui-buttons-base.ts | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/chips/ha-assist-chip.ts b/src/components/chips/ha-assist-chip.ts index 7f621f01fb..879a88569c 100644 --- a/src/components/chips/ha-assist-chip.ts +++ b/src/components/chips/ha-assist-chip.ts @@ -33,9 +33,10 @@ export class HaAssistChip extends MdAssistChip { } /** Set the size of mdc icons **/ ::slotted([slot="icon"]), - ::slotted([slot="trailingIcon"]) { + ::slotted([slot="trailing-icon"]) { display: flex; --mdc-icon-size: var(--md-input-chip-icon-size, 18px); + font-size: var(--_label-text-size) !important; } .trailing.icon ::slotted(*), diff --git a/src/panels/lovelace/components/hui-buttons-base.ts b/src/panels/lovelace/components/hui-buttons-base.ts index 07938daf36..202f8a1949 100644 --- a/src/panels/lovelace/components/hui-buttons-base.ts +++ b/src/panels/lovelace/components/hui-buttons-base.ts @@ -92,7 +92,6 @@ export class HuiButtonsBase extends LitElement { color: var(--secondary-text-color); align-items: center; justify-content: center; - margin-top: -2px; } @media all and (max-width: 450px), all and (max-height: 500px) { .ha-scrollbar {