From 694f8b404f8f4406f98a40402966d586cfe4e6cb Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Sun, 14 Jul 2024 08:08:50 +0000 Subject: [PATCH] add on primary --- src/components/ha-slider.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ha-slider.ts b/src/components/ha-slider.ts index 8bf5a098e51f..33a1fbb16d3f 100644 --- a/src/components/ha-slider.ts +++ b/src/components/ha-slider.ts @@ -15,6 +15,7 @@ export class HaSlider extends MdSlider { css` :host { --md-sys-color-primary: var(--primary-color); + --md-sys-color-on-primary: var(--text-primary-color); --md-sys-color-outline: var(--outline-color); --md-sys-color-on-surface: var(--primary-text-color); --md-slider-handle-width: 14px;