Locked slider dims its rail: :has() on the slider, since the rail comes before the input and no sibling selector reaches it

This commit is contained in:
2026-10-14 23:41:29 +02:00
parent 4e08a97354
commit e35eb67a21
@@ -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;
}