Set margin-left on non-typographical elements regardless of RTL/LTR? #39898
Unanswered
SerratedSharp
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In some cases where elements are embedded in text flow, it makes alot of sense to use the new start/end classes so that the padding or margin moves to the appropriate side when text is reordered for another language.
However, in the vast majority of cases we're adjusting spacing on layout elements that remain in the same relative positions regardless of what language is being displayed. In trying to migrate from prior version of bootstrap, we're having challenges separating the concerns of language direction specific spacing and layout spacing unrelated to the language.
E.g. I might have two columns side by side, and set ml-1 on the second element. I don't want language selection to impact this particular spacing, hence why I would not use ms-1. These columns do not get reordered based on language selection. Using ms-1 results in the spacing being moved from between the columns to the right side of the second column and failing to achieve the desired result. This is an oversimplified example of course. Certainly I can work around this in a variety of ways, but it certainly feels very unnatural compared to prior bootstrap versions.
Beta Was this translation helpful? Give feedback.
All reactions