Try: Allow vertical inserter in the nav block.#28833
Conversation
|
Size Change: +69 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
|
Ems! Sure! |
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! |
draganescu
left a comment
There was a problem hiding this comment.
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: