Skip to content

Commit

Permalink
feat(adds readonly prop to rangeslider component): implemented readon…
Browse files Browse the repository at this point in the history
…ly mode to RangeSlider

I added a boolean flag prop called readonly, that conditionally allows the user to drag the
RangeSlider handle and enable/disable the drag handle.
  • Loading branch information
ishaanbhagwat committed Jul 28, 2023
1 parent fb97275 commit bc8f150
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/RangeSlider/RangeSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,10 @@ export const HandleLabel = styled.div`
bottom: 100%;
left: 50%;
transform: translateX(-50%) rotate(${clamp(velocity, -45, 45)}deg);
background-color: ${colors.background};
border-radius: 4px;
font-weight: bold;
white-space: nowrap;
pointer-events: none;
z-index: 2;
`;
Expand Down

0 comments on commit bc8f150

Please sign in to comment.