section-metadata display-flex
proposal
#2634
Replies: 3 comments 3 replies
-
Adding more examples here testing w/ additional block types and using |
Beta Was this translation helpful? Give feedback.
-
@overmyheadandbody has done this in the past for dexter, which was not working well. My hunch based on historical evidence tells me, this will be too complicated for authors and worsen the maintenance in the future. I'd scope the initial implementation to the editorial-cards if it's needed there - and vote for not having this as a general pattern. |
Beta Was this translation helpful? Give feedback.
-
My issue isn't with having the functionality per se, it's with how we want to define it. Authors need to keep in mind so many conventions already:
So there's a bunch of diversity that could cause a lot of confusion amongst authors. Since we already have the first two options, it's probably too late to make significant changes, but a possible approach would have been to define everything in a I'm also quite curious what Ryan C has in mind for that advanced section metadata. Do you have a timeline for your feature, is it blocking anything right now? Naming-wise I still think |
Beta Was this translation helpful? Give feedback.
-
In MILO we have a few ways to offer a
display: grid
style to a section via the section-metadata so that you can author varying layouts.style: two-up, three-up, etc. (one col mobile, two col tablet, ups col desktop)
masonry: span-2, span-10 (span classes target elements by index in section)
Section Masonry
Section Style
We are missing a way to author a grid w/ the following functionality.
In order to do this we need a
display: flex
style on the section instead of thedisplay: grid
offerings above.This is largely in part to support the recent editorial-card build so the grid portion of those designs are satisfied. PR
Proposal: Offer a display-flex section-metadata key that features these options above ⏫
https://rparrish-section-flex--milo--adobecom.hlx.page/drafts/rparrish/grids/flex-grids
display-flex: default
Available values
two-tablet, three-tablet, four-tablet, five-tablet
two-desktop, three-desktop, four-desktop, five-desktop
center
(uneven # of items will align center in view)Section Display Flex
This is a very slim implement w/ setting a simple
-flex-items: ${index}
value for an MVP and isn't a full blown flex-box utility.I am still putting together some additional testing pages with grid-width-8*, gap, and other block types in these section styles that i'll post up in a bit.
Please let me know if you have any comments, suggestions, likes, dislikes, etc. Thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions