Skip to content

Commit cd89430

Browse files
committed
fix disabled styles bug for uui-range-slider
1 parent 4e17963 commit cd89430

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

packages/uui-range-slider/lib/uui-range-slider.element.ts

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,14 @@ export class UUIRangeSliderElement extends FormControlMixin(LitElement) {
9797
transition: background-color 320ms ease-out;
9898
}
9999
100-
#range-slider #inner-track .color:has(.color-target:hover),
101-
#range-slider #inner-track .color:has(.color-target:active) {
100+
:host(:not([disabled]))
101+
#range-slider
102+
#inner-track
103+
.color:has(.color-target:hover),
104+
:host(:not([disabled]))
105+
#range-slider
106+
#inner-track
107+
.color:has(.color-target:active) {
102108
background-color: var(--uui-color-focus);
103109
}
104110
@@ -216,10 +222,23 @@ export class UUIRangeSliderElement extends FormControlMixin(LitElement) {
216222
var(--uui-color-focus);
217223
}
218224
219-
#range-slider #inner-track .color:has(.color-target:hover) ~ #low-thumb,
220-
#range-slider #inner-track .color:has(.color-target:active) ~ #low-thumb,
221-
#range-slider #inner-track .color:has(.color-target:hover) ~ #high-thumb,
222-
#range-slider
225+
:host(:not([disabled]))
226+
#range-slider
227+
#inner-track
228+
.color:has(.color-target:hover)
229+
~ #low-thumb,
230+
:host(:not([disabled]))
231+
#range-slider
232+
#inner-track
233+
.color:has(.color-target:active)
234+
~ #low-thumb,
235+
:host(:not([disabled]))
236+
#range-slider
237+
#inner-track
238+
.color:has(.color-target:hover)
239+
~ #high-thumb,
240+
:host(:not([disabled]))
241+
#range-slider
223242
#inner-track
224243
.color:has(.color-target:active)
225244
~ #high-thumb {

0 commit comments

Comments
 (0)