Skip to content

Commit

Permalink
Merge pull request #223 from BouyguesTelecom/fix/range-color
Browse files Browse the repository at this point in the history
Fix color for range
  • Loading branch information
air-one-x authored Dec 16, 2024
2 parents edde4af + b6b78a6 commit 8090d7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react/components/range/Range.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 8090d7a

Please sign in to comment.