-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Final RTL discussion #28797
Comments
Another option that might work is to run Bootstrap's CSS through postcss-rtl, which would generate a new CSS file with both LTR and RTL support. I haven't tried it myself, but it might be an option. |
i have check this option but it seems to make your css a bit bulky |
FWIW, we're using rtlcss in our own fork Boosted to output another However it still requires a few overrides, which we basically push to the RTL file. Our script looks like this: Also, if the targetted version is v5 and if dropping support for IE11 is considered, using logical properties and values everywhere possible could help a lot with RTL, without doing anything… |
Simple update to mention that v5 dropped IE11 support in #30377 — so logical properties might be a game changer alongside custom properties. |
Discussion of this approach and other approaches to tackle RTL is now in #30918 |
The issue:
Bootstrap doesn't currently have rtl support. The solution should come from the rtl-interested community, but we need a plan. Maintaining a fork with rtl fixes is, in my opinion, wasted effort; there must be a better solution.
Approach for solving this issue:
Rules
abc.rtl.scss
).Solution
$rtl-support
** When using 2 user will have to set the
dir="rtl"
ordir="ltr"
. i.e<html dir="ltr">
or<html dir="rtl">
Instead of
lets have
and the mixins would look like:
Also, option 2 will include ms-x, ps-x, float-start, and -e, -end classes.
Obviously there will be alot of mixins.
Moreover some of the mixins will change, i.e.
border-left-radius
=>border-start-radius
and will contain the same login as shown above.I didn't want to make a pull request of this so here is an example where I have done the above for [alert, breadcrumb, btn-group, card]
If the maintainers have another approach to proving RTL support, kindly share.
Some of the related issues
#28238 #24807 #27123 #27122 #26879 #26818 #19545 #26299 #25422 #24662 #23703 #24332 #23117 #22708 #22137 #21619 #21180 #20293 #19555 #20075 #19787 #19703 #19668 #19643 #19545 #19379 #18184 #17595 #16455 #16419 #15717 #15700 #15509 #15479 #15433 #14717 #14510 #13564
@mdo @cvrebert
The text was updated successfully, but these errors were encountered: