-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add RTL support for checkbox/radio controls #7070
Conversation
Generate changelog in
|
Use logical properties for controls margin/paddingBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
Revert changes to right-aligned variantBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
What happens if you manually provide |
Here's a comparison of a checkbox with all the different
As you can see, setting
There's more we could do to clean up these control styles and make them more RTL compatible. However, I’d argue that should be part of a breaking change to |
e6ab1e3
to
df6af2e
Compare
Revert changes to right-aligned variantBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
@jscheiny added special handling for left aligned controls in RTL pages 88ded49 Here's an overview of the behavior between LTR/RTL
In this instance, the indicator will always align properly "left" or "right" if it is explicitly set by the consumer (regardless of text directionality). However, if alignment is not specified ( |
Add special handling for left aligned controls in RTLBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
Fixes #7053
Checklist
Changes proposed in this pull request:
Reviewers should focus on:
Checkbox/Radio (and all other controls) as well as components that use them, like ControlCard.
Screenshot
With
dir="rtl"
With
dir="rtl"
andalignIndicator="right"