-
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 vertical inserter in the nav block. #28833
Conversation
Size Change: +69 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Ems! Sure! |
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.
Thank you! LGTM ❤️
b2acfa7
to
9c1946f
Compare
The styles in |
That was my thought exactly. |
Created #28878 as an immediate followup. |
I'm not sure why the tests keep failing. I'm getting this:
not sure why this PR would cause that. |
@jasmussen just commit them here (or separately to master) as you wish :) |
The margin changes are potentially a bit sensitive, so I figured I'd keep things separate |
@jasmussen I don't think it's this PR 🙏 . It looks like the recent commits into master have been failing for this reason: |
00e4b58
to
f8d9f3f
Compare
Great catch, I'll address that. Thank you Shaun. |
f8d9f3f
to
41000a9
Compare
Alright, in 2eae54d I pushed some tweaks to margins. But I also discovered that the rabbit hole goes a bit deeper now that the page list has landed. It doesn't make sense to introduce the margin only for the separate menu items. So I'm pausing this one for a bit to give it a bit more time in the oven. In #28265 @tellthemachines wrote:
It sounds like that might simplify some of the CSS classes, so I have to write less edgecases (adding complexity). Once that's further along, it's probably a good time to rebase this one and pick it up again. |
Waiting for #29465. |
a1860b8
to
0a4f0c8
Compare
Alright, this one has been unblocked by the recent refactor of the navigation block. I've rebased, squashed, and simplified, so the changeset is smaller now. The testing instructions are the same — you should see the vertical inserter between menu items in the editor. And you should see a .5em margin between items front and backend: |
But because it changed a bit, I would appreciate a re-review or sanity check! |
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.
I gave this a spin and it feels very good. It has no visible effect in the navigation editor or the vertical variation of the block.
0a4f0c8
to
4cd0ad1
Compare
Fixes #28313.
This PR refactors the margins of navigation menu items to have 8px space between them. This allows the vertical sibling inserter to work:
This is a bit of an opinionated change, because:
Penny for your thoughts?
Checklist: