Skip to content

Commit

Permalink
fix(AlphaSlider): calc of background-position
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotomoyamada committed Jan 4, 2024
1 parent b71a976 commit d687699
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const AlphaSlider = forwardRef<HTMLDivElement, AlphaSliderProps>((props,
backgroundImage:
'linear-gradient(45deg, var(--_slider-checkers) 25%, transparent 25%), linear-gradient(-45deg, var(--_slider-checkers) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--_slider-checkers) 75%), linear-gradient(-45deg, var(--mantine-color-body) 75%, var(--_slider-checkers) 75%)',
backgroundSize: `${rem(8)} ${rem(8)}`,
backgroundPosition: `0 0, 0 ${rem(4)}, ${rem(4)} -${rem(4)}, -${rem(4)} 0`,
backgroundPosition: `0 0, 0 ${rem(4)}, ${rem(4)} ${rem(-4)}, ${rem(-4)} 0`,
},
{
backgroundImage: `linear-gradient(90deg, transparent, ${color})`,
Expand Down

0 comments on commit d687699

Please sign in to comment.