Skip to content

Commit

Permalink
RangeControl: Fix RTL support for custom marks (#63198)
Browse files Browse the repository at this point in the history
* RangeControl: Fix RTL support for custom marks

* CHANGELOG

Co-authored-by: tyxla <tyxla@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>
  • Loading branch information
3 people committed Jul 8, 2024
1 parent 8651375 commit 7d66d4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- `Button`: Stabilize `__experimentalIsFocusable` prop as `accessibleWhenDisabled` ([#62282](https://github.com/WordPress/gutenberg/pull/62282)).
- `ToolbarButton`: Always keep focusable when disabled ([#63102](https://github.com/WordPress/gutenberg/pull/63102)).
- `ProgressBar`: Fix indeterminate RTL support. ([#63129](https://github.com/WordPress/gutenberg/pull/63129)).
- `RangeControl`: Fix RTL support for custom marks ([#63198](https://github.com/WordPress/gutenberg/pull/63198)).

### Internal

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,17 @@ const markLabelFill = ( { isFilled }: RangeMarkProps ) => {

export const MarkLabel = styled.span`
color: ${ COLORS.gray[ 300 ] };
left: 0;
font-size: 11px;
position: absolute;
top: 12px;
transform: translateX( -50% );
white-space: nowrap;
${ rtl( { left: 0 } ) };
${ rtl(
{ transform: 'translateX( -50% )' },
{ transform: 'translateX( 50% )' }
) };
${ markLabelFill };
`;

Expand Down

0 comments on commit 7d66d4b

Please sign in to comment.