[v5] Why margin-inline (left + right), but no margin-block (top + bottom)? #33069
Unanswered
ryanaltvater
asked this question in
General
Replies: 1 comment 2 replies
-
|
My answer is basically "we'll get there" :). It's a huge enough leap to reorient the horizontal directions, let alone introducing a whole new approach. My gut says v6 will see the adoption of more amazing changes like this that force a rethinking of the web design and development vocabulary. Right now we're just not there. Doesn't meant we can't start somewhere though! Do you have any thoughts on what we can do in addition to the end/start change? Maybe some guides or documentation? Add-one of some kind? Open to hearing how we can better iterate and bridge the gap. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Apologies in advance if this discussion already exists elsewhere, but I didn't come across anything from a quick search of the issues. Mostly found endless conversations around RTL/margin-inline.
Recently, I've read quite a bit of discussion on here around the RTL topic and moving away from a physical
leftandrightmodel to a logicalstartandendmodel. As confusing as it was at first to wrap my head around the shift, I'm starting to get it and understand the shift.After digging through some of the utility docs, migration docs, and actual SCSS files...where is the shift to
margin-block? Are we not making a full leap from the physical model to the logical model?margin-leftandmargin-righthave moved tomargin-startandmargin-end, butmargin-topandmargin-bottomstill remain as-is with no shift to the logical model. For me, that's a little more confusing after everything that I've read and I expected to see this new model reflected 100%. Maybe it is and I'm overlooking it? If so, no need to read the rest of this and please point me in the right direction. :)If I'm not missing something and it really doesn't exist, is it something that's going to be implemented before release? I guess I can see an issue with how
margin-inlineis currently implemented asmargin-start(orms) andmargin-end(orme), but there doesn't seem to be room formargin-blockwhenmargin-startandendalready hold these broad definitions instead of something likemargin-inline-startandend, which would leave room formargin-block-startandend. To me,margin-startwould naturally meantopandleftwhilemargin-endwould meanbottomandright...but neither of those exist as real properties. Spelling outmargin-blockandmargin-inlinemakes more sense to me thanmargin-startandmargin-end, and the need to remember those asleftandright(at least for the time-being).My team is currently on v4 and will be utilizing the API to ensure our work doesn't break. We also want to be able to shift with the industry and use what is considered the standard moving forward. This means that we will need to support 2 different sets of utility classes as part of our codebase (physical and logical) to support all of our work. If
topandbottomeventually shift tomargin-block, thenmargin-startandendwill likely need to change and become more specific likemargin-inline-start(ormis) andmargin-inline-end(ormie) that is already the standard and supported across browsers. If not something addressed before release, this kind of future update would create a 3rd set of utility classes in our codebase if we moved forward with v5 as it stands currently (physical, current logical, and updated logical).Like it has been said by the Bootstrap team on a few different threads expressing concerns about this move and immediate deprecation, now is the best time during this major update. So is this something we can think about, discuss, and possibly implement before official release, or is it too late?
Beta Was this translation helpful? Give feedback.
All reactions