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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
2026-10-14 23:41:29 +02:00
co-authored by Claude Opus 5.5
parent 43fb446297
commit b0c07a35e9
@@ -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;
}