From c2f21c19af4e0c14b83f6d34e01caec50aa5b923 Mon Sep 17 00:00:00 2001 From: Wendelin <12148533+wendevlin@users.noreply.github.com> Date: Fri, 10 Oct 2025 14:27:53 +0200 Subject: [PATCH] Fix resizable-bottom-sheet background (#27439) --- src/components/ha-resizable-bottom-sheet.ts | 2 +- src/panels/config/automation/ha-automation-sidebar.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ha-resizable-bottom-sheet.ts b/src/components/ha-resizable-bottom-sheet.ts index f9098c01fa..685e8971c3 100644 --- a/src/components/ha-resizable-bottom-sheet.ts +++ b/src/components/ha-resizable-bottom-sheet.ts @@ -220,7 +220,7 @@ export class HaResizableBottomSheet extends LitElement { min-height: var(--min-height, 30dvh); background-color: var( --ha-bottom-sheet-surface-background, - var(--ha-dialog-surface-background, var(--mdc-theme-surface, #fff)), + var(--ha-color-surface-default) ); display: flex; flex-direction: column; diff --git a/src/panels/config/automation/ha-automation-sidebar.ts b/src/panels/config/automation/ha-automation-sidebar.ts index 178ca82e51..e51a12b5cc 100644 --- a/src/panels/config/automation/ha-automation-sidebar.ts +++ b/src/panels/config/automation/ha-automation-sidebar.ts @@ -302,6 +302,8 @@ export default class HaAutomationSidebar extends LitElement { --ha-bottom-sheet-border-style: solid; --ha-bottom-sheet-border-color: var(--primary-color); margin-top: var(--safe-area-inset-top); + + --ha-bottom-sheet-surface-background: var(--card-background-color); } @media all and (max-width: 870px) {