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

Adding RTL support. #26722

Closed
wants to merge 26 commits into from
Closed

Conversation

mohamedragaey
Copy link

Adding RTL support for bootstrap4.

@andresgalante
Copy link
Collaborator

Hi @mohamedragaey, thanks for this PR. We've talked about RTL many times, for example #24807 #24808

This solution is smart but it forces contributors to know that they should replace left and right. To me it's a big barrier. On the other hand I don't see a good solution until CSS Logical Properties and Values are implemented in browsers.

@mdo what do you think about this one?

@mohamedragaey
Copy link
Author

Hi @andresgalante, thanks for your reply.
I did have a look on both of the two examples that you mentioned above before I start this pull request, and the duplication of every rule is not a good solution.
I think the value added here is worth that contributer would know to replace the left with $default and right with $opposite in the contribution guide.

If we waited untill CSS logical properties and values to be implemented in browsers we won't use bootstrap RTL out of the box not in the near future
@mdo please let us know what you think.

@Aeon
Copy link

Aeon commented Jun 28, 2018

👍

@mohamedragaey
Copy link
Author

@andresgalante @mdo
any news on this PR ??

@andresgalante andresgalante requested a review from mdo July 13, 2018 12:46
@DJafari
Copy link

DJafari commented Jul 14, 2018

@andresgalante you say right, but when browsers support it, another time is required to update users of their browsers, i think it will take a year ... and I hope that bootstrap will be the 6th edition :-D
i think this solution best solution until browsers support start and end

@mohamedragaey
Copy link
Author

@andresgalante @mdo
any news on this PR ??

Copy link
Member

@XhmikosR XhmikosR left a comment

Choose a reason for hiding this comment

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

Please fetch upstream, fix the conflicts and drop any dist files from your commits.

@XhmikosR
Copy link
Member

@mohamedragaey: that's not a rebase.

@mohamedragaey
Copy link
Author

@XhmikosR

@mohamedragaey: that's not a rebase.
Is every thing is ok now ??

@XhmikosR
Copy link
Member

XhmikosR commented Oct 30, 2018

Nope. That is not a rebase nor have you dropped the dist file changes.

@mohamedragaey
Copy link
Author

@XhmikosR sorry but do you mean i should add dist files to gitignore or delete them and not commit them

@XhmikosR
Copy link
Member

Please read https://github.com/twbs/bootstrap/blob/v4-dev/.github/CONTRIBUTING.md#pull-requests

No dist files, and a proper rebase is needed for this to be reviewed eventually.

@XhmikosR
Copy link
Member

XhmikosR commented Nov 4, 2018

@twbs/css-review: how do you want to proceed with this? It's unmergeable as it is, also we have #27027

@MartijnCuppens
Copy link
Member

We should definitely have a look how to support RTL in the future, but at the moment we have these issues:

  • RTL support will slow down our development, every future PR that's going to be made will need to be checked for RTL support
  • If we're going to continue with RTL, we'll need a team of people that will review the PRs, at the moment we don't have any Bootstrap team members that are familiar with RTL (I think).
  • This PR adds a layer of complexity to Bootstrap, if someone wants to look into the code and sees for example padding-#{$default}, it's not immediately clear what $default means.

@MartijnCuppens
Copy link
Member

I'm going to close this because this approach is going to be way too difficult to maintain. RTL is definitely something we should look in to in the future, but we need to find a simpler solution for it.

@mohamedragaey mohamedragaey deleted the v4-dev-rtl-support branch March 17, 2019 10:19
@mohamedragaey mohamedragaey restored the v4-dev-rtl-support branch March 17, 2019 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants