From b0c07a35e9b2cc873bff33841e89c09dfea052bc Mon Sep 17 00:00:00 2001 From: stroblme Date: Wed, 14 Oct 2026 23:41:29 +0200 Subject: [PATCH] Locked slider dims its rail: :has() on the slider, since the rail comes before the input and no sibling selector reaches it Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx --- frontend/src/components/Dashboard/ui/core/core.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Dashboard/ui/core/core.css b/frontend/src/components/Dashboard/ui/core/core.css index f382f09..7303dbb 100644 --- a/frontend/src/components/Dashboard/ui/core/core.css +++ b/frontend/src/components/Dashboard/ui/core/core.css @@ -576,8 +576,9 @@ outline-offset: 2px; } +/* The rail comes before the input, so no sibling selector reaches it. */ .dui-slider-input:disabled ~ .dui-slider-thumb, -.dui-slider-input:disabled ~ .dui-slider-rail { +.dui-slider:has(.dui-slider-input:disabled) .dui-slider-rail { opacity: 0.45; }