Move PictureLayout to grid#16251
Conversation
f33830a to
e33629d
Compare
|
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
e2f5162 to
d9fba56
Compare
6729bd2 to
53aad3f
Compare
JamieB-gu
left a comment
There was a problem hiding this comment.
Overall approach looks good. Comments mostly about application of CSS and the grid rules.
| headline: { | ||
| mobile: 'grid-row: 2;', | ||
| tablet: 'grid-row: 2;', | ||
| desktop: `grid-row: 2; ${grid.between('centre-column-start', 'right-column-end')};`, |
There was a problem hiding this comment.
I think you're asking this element to span both columns here, then on the element inside it you're setting a max-width to ensure it's essentially the same width as the centre column? Would it be easier to just set grid.column.centre here (which I think is the default) and remove that max-width, or am I missing something about the design?
| body: { | ||
| tablet: 'grid-row: 6;', | ||
| desktop: `grid-row: 6; ${grid.between('centre-column-start', 'right-column-end')};`, | ||
| leftCol: `grid-row: 5; ${grid.between('centre-column-start', 'right-column-end')};`, |
There was a problem hiding this comment.
Do you need the second grid.between here? Once it's set at desktop doesn't that continue to apply at leftCol?
| leftCol: `grid-row: 5; ${grid.between('centre-column-start', 'right-column-end')};`, | |
| leftCol: `grid-row: 5;`, |
| mobile: 'grid-row: 5;', | ||
| tablet: 'grid-row: 5;', | ||
| desktop: `grid-row: 5; ${grid.between('centre-column-start', 'right-column-end')};`, | ||
| leftCol: `grid-row: 3; ${grid.between('centre-column-start', 'right-column-end')};`, |
There was a problem hiding this comment.
Do you need the second grid.between here? Once it's set at desktop doesn't that continue to apply at leftCol?
| leftCol: `grid-row: 3; ${grid.between('centre-column-start', 'right-column-end')};`, | |
| leftCol: `grid-row: 3;`, |
There was a problem hiding this comment.
I've made some comments about how you probably don't need to repeat certain rules at later breakpoints because earlier ones still apply. But you're doing this a lot here so I'm wondering if there's a reason that I'm missing? If so, please ignore most of those comments!
| mobile: 'grid-row: 1;', | ||
| tablet: 'grid-row: 1;', | ||
| leftCol: `grid-row: 1; ${grid.column.left}`, |
There was a problem hiding this comment.
I think the tablet rule still applies at leftCol?
| mobile: 'grid-row: 1;', | |
| tablet: 'grid-row: 1;', | |
| leftCol: `grid-row: 1; ${grid.column.left}`, | |
| mobile: 'grid-row: 1;', | |
| tablet: 'grid-row: 1;', | |
| leftCol: grid.column.left, |
| tablet: 'grid-row: 2;', | ||
| desktop: `grid-row: 2; ${grid.between('centre-column-start', 'right-column-end')};`, |
There was a problem hiding this comment.
I think the tablet rule still applies at desktop?
| tablet: 'grid-row: 2;', | |
| desktop: `grid-row: 2; ${grid.between('centre-column-start', 'right-column-end')};`, | |
| tablet: 'grid-row: 2;', | |
| desktop: grid.between('centre-column-start', 'right-column-end'), |
| tablet: 'grid-row: 4;', | ||
| desktop: 'grid-row: 4;', |
There was a problem hiding this comment.
I think the tablet rule still applies at desktop?
| tablet: 'grid-row: 4;', | |
| desktop: 'grid-row: 4;', | |
| tablet: 'grid-row: 4;', |
| tablet: 'grid-row: 5;', | ||
| desktop: `grid-row: 5; ${grid.between('centre-column-start', 'right-column-end')};`, |
There was a problem hiding this comment.
I think the tablet rule still applies at desktop?
| tablet: 'grid-row: 5;', | |
| desktop: `grid-row: 5; ${grid.between('centre-column-start', 'right-column-end')};`, | |
| tablet: 'grid-row: 5;', | |
| desktop: grid.between('centre-column-start', 'right-column-end'), |
| tablet: 'grid-row: 3;', | ||
| desktop: `grid-row: 3; ${grid.between('centre-column-start', 'right-column-end')};`, |
There was a problem hiding this comment.
I think the tablet rule still applies at desktop?
| tablet: 'grid-row: 3;', | |
| desktop: `grid-row: 3; ${grid.between('centre-column-start', 'right-column-end')};`, | |
| tablet: 'grid-row: 3;', | |
| desktop: grid.between('centre-column-start', 'right-column-end'), |
| tablet: 'grid-row: 6;', | ||
| desktop: `grid-row: 6; ${grid.between('centre-column-start', 'right-column-end')};`, |
There was a problem hiding this comment.
I think the tablet rule still applies at desktop?
| tablet: 'grid-row: 6;', | |
| desktop: `grid-row: 6; ${grid.between('centre-column-start', 'right-column-end')};`, | |
| tablet: 'grid-row: 6;', | |
| desktop: grid.between('centre-column-start', 'right-column-end'), |
53aad3f to
9877fdf
Compare
9877fdf to
ebfdf4a
Compare
|
Please rebase this branch against
Please rebase this branch against |
Continuing on my grid rampage of #1542, #16119, and #16133 this absorbs PictureLayout into the new grid system for content pages. This one's a smidge more involved due to the avatar pics that sometimes render (though cracking that here paves the way for CommentLayout to move over too).
Screenshots