-
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
Polish responsive navigation modal, inherit justifications, fix submenu direction #35077
Conversation
Size Change: +563 B (0%) Total Size: 1.06 MB
ℹ️ View Unchanged
|
65d746d
to
56a962a
Compare
Thanks a ton for testing, both of you. Vicente, it appears the spacing issue with the navigation is due to obsolete margin rules applied by TT1, tracked here: https://core.trac.wordpress.org/ticket/53220 You can see here that the gap is the same: But the main items have a padding applied by the theme, which interferes with it: The white border around the responsive modal dialog is also from TT1 styling the wrong background color, it appears: This is also reflected if you choose a different background color: The white background behind the active menu item is because TT1 also sets the bg color on focus, and in a modal dialog, the first item gets focus as soon as it's opened. There seems to be a legitimate issue with the spacing of items in the "unfolded" style: I'll see what I can do here. About the TT1 issues: it was built to represent the best WordPress had to offer coinciding with a release. Which meant it did the very best it could with the markup and featureset the navigation block had at the time, which has changed a great deal. I will see if I can set aside some time to submit a patch and fix it at the source. But in the mean time, it's possibly best to test with another theme, possibly "Empty Theme" from this repo. |
Also, when using post list and other items in a horizontal menu, it still displays vertically: The markup for this one is:
|
Yeah that makes perfect sense :) |
@jasmussen do you mind rebasing with trunk, we're running into the |
66cd3d6
to
e4c1ecb
Compare
Done, thank you for looking! |
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.
Nice work @jasmussen! Giving tentative approval, but feel free to land when we have tests green.
I verified that alignment and space between still work. I did notice some jumping in edit mode when selecting a block with justify right or space between, but I think that's more minor and can be addressed in a different PR.
Thank you! I'll let this one sit until tomorrow and look at merging it then so I can follow up. In the mean time I would welcome any tests and additional reviews. |
@jasmussen @gwwar It seems like there was a lot going on here, but absolutely no testing of the navigation editor, and this PR has caused issues with the appearance of items in the navigation editor. There are quite a number of problems now when we factor in the problems also introduced by #35026. In addition to the problem that PR introduced, this one seems to have caused issues with the hover and selected block styles: The border is cut-off, and there's a lot of general glitching when hovering over items (the whole nav block unexpectedly resizing, different borders showing up). I understand that the way the editor's styles work right now isn't ideal, but I don't think this is a valid excuse to bypass testing and fixing issues as you encounter them prior to merging. Both the editor and the block are a shared responsibility for those working on this project, and it'd be great to see more sharing of responsibility in the future when contributing. |
Apologies. I included a fix for the hover style in #35234. Can you clarify what you are seeing with regards to the nav block resizing, different borders showing up? I'm seeing the following which seems right to me: |
Left a video and comment on #35234. |
Sorry @talldan I usually remember, but I forgot for this round of testing! |
Description
Fixes #35040. Fixes and issue where justifications were not inherited in the responsive modal, an issue with hover-opening flickering, and an issue with submenus not opening in the right direction.
This is a big of a big one so could use a great deal of testing in a variety of themes, with a variety of content. Things to look for:
All of that, worth testing with and without responsive navigation toggled on, and with and without a Page List block inside.
How has this been tested?
You can use this testing content:
Screenshots
Before, editor:
Before, frontend:
Before, inside the modal, even though justification was set to right:
After, frontend:
After, submenus when justified right:
After, modal:
Checklist:
*.native.js
files for terms that need renaming or removal).