Skip to content

Commit

Permalink
RangeControl: Fix style issue in RTL (#35777)
Browse files Browse the repository at this point in the history
* Fixes #34855 RangeControl style issue in RTL

* addjest the dot offset so it lines up with tool tip

* swapped to using translateX for the adjustment
  • Loading branch information
pbearne authored Oct 25, 2021
1 parent 19da62a commit 2bb4e77
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,13 @@ export const ThumbWrapper = styled.span`
user-select: none;
width: ${ thumbSize }px;
border-radius: 50%;
transform: translateX( 4.5px );
${ thumbColor };
${ rtl( { marginLeft: -10 } ) };
${ rtl(
{ transform: 'translateX( 4.5px )' },
{ transform: 'translateX( -4.5px )' }
) };
`;

const thumbFocus = ( { isFocused } ) => {
Expand Down

0 comments on commit 2bb4e77

Please sign in to comment.