Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeControl: Fix RTL support for custom marks #63198

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

tyxla
Copy link
Member

@tyxla tyxla commented Jul 5, 2024

What?

Fix the RTL support for RangeControl with custom marks.

Spotted as I was playing with RTL in Storybook while working on #63129.

Why?

Currently on RTL, the custom marks are off for RTL browsers.

How?

We're essentially applying some RTL considerations to the custom mark styles

Testing Instructions

  • Open the RangeControl component in storybook
  • Try all stories with marks and verify they work well on both LTR and RTL.

Testing Instructions for Keyboard

None

Screenshots or screencast

The "With Decimal Step And Marks" story on RTL:

Before:

Screenshot 2024-07-05 at 17 38 11

After:

Screenshot 2024-07-05 at 17 37 55

@tyxla tyxla added [Type] Enhancement A suggestion for improvement. Internationalization (i18n) Issues or PRs related to internationalization efforts [Package] Components /packages/components labels Jul 5, 2024
@tyxla tyxla requested a review from a team July 5, 2024 14:41
@tyxla tyxla self-assigned this Jul 5, 2024
@tyxla tyxla requested a review from ajitbohra as a code owner July 5, 2024 14:41
Copy link

github-actions bot commented Jul 5, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: tyxla <tyxla@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Member

@mirka mirka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@tyxla tyxla merged commit 7d66d4b into trunk Jul 8, 2024
62 checks passed
@tyxla tyxla deleted the fix/range-control-custom-marks-rtl branch July 8, 2024 09:45
@github-actions github-actions bot added this to the Gutenberg 18.8 milestone Jul 8, 2024
huubl pushed a commit to huubl/gutenberg that referenced this pull request Jul 10, 2024
* RangeControl: Fix RTL support for custom marks

* CHANGELOG

Co-authored-by: tyxla <tyxla@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internationalization (i18n) Issues or PRs related to internationalization efforts [Package] Components /packages/components [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants