Overview
Waaaaaay back in #651, we had a lot of internal discussion about logical properties, ultimately deciding to base our utilities on them. But since then, only our utilities and our Container object use logical properties: We appear to overwhelmingly be using traditional, directional property names like margin-left over equivalents like margin-inline-start.
At the time, some of our misgivings may have been a factor of confusing support. Chrome versions ≤ 86 and Safari versions ≤ 14.0 did not accurately support shorthand properties like margin-inline or padding-block. Thankfully, these issues have been resolved in more recent versions.
Another factor may be that we focused too little on this change in CSS compared to utility classes. Our spacing and padding utility classes have proven useful, with ~ 45 occurrences in our documentation and prototypes, but that's nothing compared to the 100+ occurrences of margin in our stylesheets.
Perhaps this is also a difficult change to make without some automated hand-holding. There are a few competing stylelint plugins for this, the most popular appearing a bit stale. This alternative seems a bit better maintained: https://www.npmjs.com/package/stylelint-use-logical-spec
To-dos
Thanks @spaceninja for pointing this out during a PR review
Overview
Waaaaaay back in #651, we had a lot of internal discussion about logical properties, ultimately deciding to base our utilities on them. But since then, only our utilities and our Container object use logical properties: We appear to overwhelmingly be using traditional, directional property names like
margin-leftover equivalents likemargin-inline-start.At the time, some of our misgivings may have been a factor of confusing support. Chrome versions ≤ 86 and Safari versions ≤ 14.0 did not accurately support shorthand properties like
margin-inlineorpadding-block. Thankfully, these issues have been resolved in more recent versions.Another factor may be that we focused too little on this change in CSS compared to utility classes. Our spacing and padding utility classes have proven useful, with ~ 45 occurrences in our documentation and prototypes, but that's nothing compared to the 100+ occurrences of
marginin our stylesheets.Perhaps this is also a difficult change to make without some automated hand-holding. There are a few competing stylelint plugins for this, the most popular appearing a bit stale. This alternative seems a bit better maintained: https://www.npmjs.com/package/stylelint-use-logical-spec
To-dos
Thanks @spaceninja for pointing this out during a PR review