From b6b78a677f9df857e0f30ec1ff7abe34dca788d3 Mon Sep 17 00:00:00 2001 From: JulienMora Date: Mon, 16 Dec 2024 11:50:46 +0100 Subject: [PATCH] Fix color for range --- packages/react/components/range/Range.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react/components/range/Range.tsx b/packages/react/components/range/Range.tsx index c8c4181d..4fe71467 100644 --- a/packages/react/components/range/Range.tsx +++ b/packages/react/components/range/Range.tsx @@ -40,11 +40,11 @@ const Range = ({ React.useEffect(() => { if (refTrack.current) { const track = refTrack.current as HTMLElement - track.style.background = `linear-gradient(to right, ${getColorStyle(TrilogyColor.NEUTRAL_FADE)} ${ + track.style.background = `linear-gradient(to right, ${getColorStyle(TrilogyColor.MAIN_FADE)} ${ (cursorMin / max) * 100 - }% , ${getColorStyle(TrilogyColor.MAIN_FADE)} ${(cursorMin / max) * 100}% , ${getColorStyle( - TrilogyColor.MAIN_FADE, - )} ${(cursorMax / max) * 100}%, ${getColorStyle(TrilogyColor.NEUTRAL_FADE)} ${(cursorMax / max) * 100}%) ` + }% , ${getColorStyle(TrilogyColor.MAIN)} ${(cursorMin / max) * 100}% , ${getColorStyle( + TrilogyColor.MAIN, + )} ${(cursorMax / max) * 100}%, ${getColorStyle(TrilogyColor.MAIN_FADE)} ${(cursorMax / max) * 100}%) ` } }, [cursorMin, cursorMax])