-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix page list missing button styles when set to open on click. #36601
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jasmussen
added
[Type] Bug
An existing feature does not function as intended
[Block] Navigation
Affects the Navigation Block
Backport to WP 6.7 Beta/RC
Pull request that needs to be backported to the WordPress major release that's currently in beta
[Block] Page List
Affects the Page List Block
[Block] Submenu
Affects the Submenu Block - for submenus in navigation
labels
Nov 18, 2021
Size Change: -325 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
carolinan
approved these changes
Nov 19, 2021
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.
Buttons in the page list looks much better now, thank you.
No issues found with the submenu block buttons.
I'll rebase and land this one. |
jasmussen
force-pushed
the
try/fix-page-list-button-styles
branch
2 times, most recently
from
November 19, 2021 09:21
dcf3b3e
to
7453fc3
Compare
jasmussen
force-pushed
the
try/fix-page-list-button-styles
branch
from
November 19, 2021 09:28
7453fc3
to
c672b1a
Compare
noisysocks
removed
the
Backport to WP 6.7 Beta/RC
Pull request that needs to be backported to the WordPress major release that's currently in beta
label
Nov 22, 2021
noisysocks
pushed a commit
that referenced
this pull request
Nov 22, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Block] Navigation
Affects the Navigation Block
[Block] Page List
Affects the Page List Block
[Block] Submenu
Affects the Submenu Block - for submenus in navigation
[Type] Bug
An existing feature does not function as intended
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes #36599.
The stylesheet containing styles to unset the border appearance of the
button
element used for the Submenu block are tied directly to that block. Which means if you set the Page List block to open submenus on click, those styles are missing:This PR moves those submenu styles to the navigation block itself, so that the navigation block conducts the apperance of its contents:
This feels appropriate, especially since the Submenu block can't be used outside of Navigation.
How has this been tested?
Make sure you have published pages on your site that include submenus. Insert a navigation block with a Page List and set it to open on click. The submenu button should look
Checklist:
*.native.js
files for terms that need renaming or removal).