Skip to content

Commit

Permalink
feat(handle): reduce box-shadow spread and increase box-shadow opacit…
Browse files Browse the repository at this point in the history
…y to make handle easier to see on bright backdrops
  • Loading branch information
nerdyman committed Oct 21, 2023
1 parent 732ce0b commit 9331c2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/ReactCompareSliderHandle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const ReactCompareSliderHandle: FC<
width: portrait ? '100%' : 2,
backgroundColor: 'currentColor',
pointerEvents: 'auto',
boxShadow: '0 0 7px rgba(0,0,0,.5)',
boxShadow: '0 0 4px rgba(0,0,0,.5)',
...linesStyle,
};

Expand All @@ -80,7 +80,7 @@ export const ReactCompareSliderHandle: FC<
backdropFilter: 'blur(7px)',
WebkitBackdropFilter: 'blur(7px)', // For Safari.
backgroundColor: 'rgba(0, 0, 0, 0.125)',
boxShadow: '0 0 7px rgba(0,0,0,.35)',
boxShadow: '0 0 4px rgba(0,0,0,.35)',
transform: portrait ? 'rotate(90deg)' : undefined,
...buttonStyle,
};
Expand Down

0 comments on commit 9331c2e

Please sign in to comment.