-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
RTL: remaining tasks #32330
Comments
Great job, noticed this issues so far. |
Is there a discussion somewhere for the huge amount of work it's going to add to migrations changing l/r to s/e? |
@pau1phi11ips You may open a discussion if you need; regarding migration, I'd suggest you have a look at our migration guide. |
I've checked out the migration guide. Moving from 4 to 5 didn't look like it's be that much work until the left/right to start/end bombshell. I was just surprised I couldn't find any existing discussions on the change. |
It's still not much work as a couple of find/replace commands will do the work. It's a huge step forward to support RTL languages since many modern UI frameworks have support for it, it worth the effort. |
Well @pau1phi11ips, the PR itself is probably the biggest discussed PR in Bootstrap history, and its description links to dozens of previous discussions—with the latest one #30918 helping to choose the way we wanted to implement RTL. It's been announced several times on Twitter and on our blog (in our alpha releases announcements). I don't know what more we could've done, but any suggestion is welcome since we can improve our docs and communication before we hit stable release, to prevent anyone from being surprised like you were. This is a major release because of those breaking changes. And as @FaridAghili said, changes are 1:1 for class names, so it's really straightforward. |
Thanks for the links @ffoodd, that's what I was after in the first place. Sorry I missed the news about this before. I appreciate having RTL support is good for Bootstrap. Just not sure it's method is the best for what must be over 95% of current Bootstrap 4 users. Maybe memories of updating all our frontend pages from Bootstrap 3 to 4 is making me react more severely to breaking changes in 4 to 5 though 😏 Migrating Bootstrap 3 to 4 took frickin' ages to complete. |
Is it fair to say that the RTL approach chosen is all or nothing? Is it possible to have a website (e.g. CMS-generated) where an article or slideshow content in English is mixed with another in Arabic? This may be quite important limitation to help people understand what is actually possible. Mixed content is a messy reality for multilingual organizations, so if you have position (or workarounds or even just thoughts), it would be great to know. |
@arafalov You're right, our approach (currently) is to have two separate files: one for LTR and one for RTL—meaning you can't use both at the same time. And it seems legit since your document has a main language. However everything still works, so regarding mixed contents you'd do like you did before: using our utilities to layout things (and My hope is that logical properties will eventually be supported enough when we'll start v6, so that we drop RTLCSS and separate files. That would solve the mixed content case :) BTW, are you aware of any tool or framework that handles mixed languages contents in another way? Every source and inspiration is good to know. |
@ffoodd Thank you for the clarification. Yes, I think a dedicated example with mixed content would really help. The bidi is a hard topic, so extra level of clarification early on and demo examples would really simply developers' life and understanding the level of built-in/additional support/effort required. I am not aware of any other framework doing this better, unfortunately. Drupal does try to support mixed languages content, but that probably does not qualify as framework. |
@omoridi What issue are you solving? Please open a pull request if you have any patch to submit. |
Hi, why this block is remarked in rtl file? /* rtl:raw: always these must be ltr |
@omoridi And this is exactly what it does: ensure |
Hi, excuse me for late answering, I test it, it's okay but, some class must be changed in main bootstrap, so what we can? i try to fixed on bootstrap or add helper class for rtl? |
@omoridi If I understand correctly, you'd need bidi stylesheets, not simply RTL and LTR side-by-side. This is not what we've done currently—and it's explained in another issue's comment. You're the one who opened the said issue, I answered with a precise code sample and solution. I even added to the current tasks list an item to document this solution—so please consider answering in your previous issue because for now we're only polluting this one. |
Converting Markdown to HTML should surround rtl text with a |
Fixes a bug mentionned in [#32330](#32330 (comment)). Co-authored-by: XhmikosR <xhmikosr@gmail.com>
@aqeelat I'm not sure to understand your last comment, would you have an example where surrounding would be mandatory? |
@ffoodd For some weird reason, RTL text is arranged from left to right, and then displayed as such. Imagine it this way: This explains it. |
Wow @aqeelat thanks for finding this, I had no idea! Need to check if Hugo allows some tweaks for such cases, but I'll add this to the to-do list. Thanks again for your contributions, I'm learning a lot ❤️ |
Dir is not good idea! but I like this and I will use it. |
Bug: Offcanvas close button doesn't switch place: bootstrap/scss/_offcanvas.scss Line 25 in a9d7a62
|
@SafaAlfulaij Would you mind opening a dedicated issue, please? This one is more docs related now. Thanks! |
Hey hey! Hello from the future! Today logical properties are supported widely enough to finally consider this question! 😉 |
Would a find-all “margin-left” and replace with “margin-start” work? Or would it be on a case-by-case basis?Anyways, I’d love to be involved.
|
Mostly around cheatsheet automation.
Questions
direction
in the front matter and have that automatically toggle LTR to RTL CSS inclusionNeed help
<bdi>
and<bdo>
, I guess: HTML5Doctor.com content and MDN docs forbdi
andbdo
isRTL
to a function #32446 Fix carousel RTL and refactor code, fix rtl swipe issues #32913Docs improvements
.ltr
/.rtl
: RTL Problem #32666 (comment).ml-*
to.me-*
and.mr-*
to.ms-*
—basically the opposite of LTR. → Improve docs regarding RTL migration #32771<bdi dir="rtl">
wrapper? See @AqeelAT's comment above.Chore
Personal note, as I'm getting exhausted by all those naming/aliasing/restoring utilities discussions:
$utilities
override to provide a solid and oldish v5 using v4 utilities (and dropping RTL support).The text was updated successfully, but these errors were encountered: