From dcfe9617b3fa5d7298c400cd13fa345ada7dab08 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 20 Dec 2023 15:26:48 -0600 Subject: [PATCH] Make disabled sliders properly visible (#19102) Followed similar variable usage by ha-*-chip components. Fixes #19101 --- 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 c3fb87005b20..5ea8d50b3321 100644 --- a/src/components/ha-slider.ts +++ b/src/components/ha-slider.ts @@ -11,6 +11,7 @@ export class HaSlider extends MdSlider { :host { --md-sys-color-primary: var(--primary-color); --md-sys-color-outline: var(--outline-color); + --md-sys-color-on-surface: var(--primary-text-color); --md-slider-handle-width: 14px; --md-slider-handle-height: 14px; min-width: 100px;