-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try: Allow space between on page list. #29771
Conversation
"Display contents" has reasonable support and can be seen as a progressive enhancement for this particular edgecase: https://caniuse.com/css-display-contents |
Size Change: +321 B (0%) Total Size: 1.3 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works perfectly in the frontend, but in the editor I'm seeing the page items stack up vertically when I set justification to space between.
justification1.mov
The video is from Firefox, but I see the same behavior using Chrome.
Not sure how helpful this might be, but in the editor, after removing the display: contents
rule, the component starts doing this dance:
justification2.mov
I tested T19 and TT1.
9f4d4bf
to
2e44c07
Compare
2e44c07
to
ee89990
Compare
That does work better, Vicente. However I'm not super comfortable with the use of |
a317afc
to
d211e1e
Compare
f29a23f
to
7c4ee78
Compare
Thank you @scruffian, I'm happy to try this, even though the
Agreed. I pushed a fix for that in #30287, which touches other margins and therefore felt a better place to me: |
Is there still value in landing this one? |
7c4ee78
to
596ff58
Compare
Yes, it looks ready to land to me |
Checking in on this one @vcanales @scruffian @jasmussen, was this one still needed / what else needs to be done for landing? Another review? |
Thanks for the check-in, Kerry. After Ben's last sanity check, I think this is ready for a final review. My only concern was and to an extent the use of |
Co-authored-by: Vicente Canales <[email protected]>
596ff58
to
dfa8d06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Tested this and works as described on both editor and frontend.
Screen.Capture.on.2021-05-17.at.09-36-21.mp4
Thanks so much 💫 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working well for me in Chrome on Windows 10.
Thanks all! |
Description
Fixes #29767.
The page list block, by virtue of being an additional container, did not work with the "space between" justification.
This PR improves the situation in the editor, though the preview isn't perfect when using a mix of page list and other items, and make it perfect on the frontend.
Editor before:
Frontend before:
Editor after:
Frontend after:
How has this been tested?
Please test a page list block with some other menu items in a navigation block. Test all justifications.
Be sure to deselect the navigation block after choosing a justification.
Checklist: