diff --git a/src/lib/components/ui/Slider.svelte b/src/lib/components/ui/Slider.svelte
index 8c7dae6b..fae295a3 100644
--- a/src/lib/components/ui/Slider.svelte
+++ b/src/lib/components/ui/Slider.svelte
@@ -49,7 +49,9 @@
{disabled}
class="slider {element ?? ''} {className}"
>
-
+
+
+
@@ -68,26 +70,24 @@
touch-action: none;
user-select: none;
- // Track
- &::before {
- content: '';
- position: absolute;
- left: 0;
- right: 0;
- height: $unit-half;
- background: var(--slider-track-bg, var(--button-bg));
- border-radius: $full-corner;
- }
-
&[data-disabled] {
opacity: 0.5;
cursor: not-allowed;
}
}
+ :global(.slider-track) {
+ position: relative;
+ width: 100%;
+ height: $unit-half;
+ background: var(--slider-track-bg, var(--button-bg));
+ border-radius: $full-corner;
+ overflow: hidden;
+ }
+
:global(.slider-range) {
position: absolute;
- height: $unit-half;
+ height: 100%;
background: var(--slider-range-bg, var(--accent-blue));
border-radius: $full-corner;
}