-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: Inconsistent button spacing in RTL mode #38278
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
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: f7c44c4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 40 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughAdds RTL spacing props to two buttons on the Account Preferences page and a new changeset documenting the RTL spacing fix. No API or exported signatures were changed. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 2 files
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #38278 +/- ##
===========================================
+ Coverage 70.71% 70.75% +0.03%
===========================================
Files 3141 3142 +1
Lines 108799 108927 +128
Branches 19587 19779 +192
===========================================
+ Hits 76942 77074 +132
+ Misses 29857 29846 -11
- Partials 2000 2007 +7
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
517fc9f to
660ad67
Compare
660ad67 to
f7c44c4
Compare
dougfabris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution 🚀
Nice catch, but it feels like the proper fix would be consider the dir attribute in order to make the margins applied in fuselage's ButtonGroup
|
Hi @dougfabris , Thanks for the feedback! That makes sense. I was already considering addressing this directly in Fuselage’s |
|
Thank you so much 🚀 @Anshumancanrock |

Proposed changes (including videos or screenshots)
Fixed inconsistent button spacing in RTL (Right-to-Left) mode on the Account Preferences page.
In Arabic and other RTL languages, the Cancel and Save Changes buttons were appearing too close together or touching, while they had proper spacing in LTR mode. This happened because the ButtonGroup component uses physical CSS properties instead of logical ones.
The fix adds margin-inline props (
mie='x4'andmis='x4') to the buttons, which automatically adapt to text direction and ensure consistent spacing in both LTR and RTL layouts.Closes #38276
Steps to test or reproduce
Before fix:
After fix:
Summary by CodeRabbit
Bug Fixes
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.