-
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
Navigation: Fix padding for social links on mobile #35824
Conversation
@@ -465,7 +465,7 @@ | |||
} | |||
|
|||
// A default padding is added to submenu items. It's not appropriate inside the modal. | |||
a { | |||
a:not(.wp-block-social-link-anchor) { |
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.
Instead of a
, could you target .wp-block-navigation-item__content
instead? That will both make the selector simpler, and fix the problem for any other nested blocks that might add links, like site logo or title.
@jasmussen you mentioned that we could directly target |
Size Change: -3 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
We were both typing at the same time 😅 Yes, I think the class is better, because the zeroing out of padding is meant only for menu items, but menu items also includes click-only dropdown items, which are |
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.
Tests are green 👌 |
* trunk: (494 commits) remove consecutive rc warning (#35855) Update Changelog for 11.8.0-rc.2 Bump plugin version to 11.8.0-rc.2 [RNMobile] Disable React Native E2E Tests (iOS) (#35844) Add section about using the schema during development (#35835) Add a method to disable auto-accepting dialogs (#35828) Wrap NavigationContainer with SafeAreaView. (#35570) Update Appium to 1.22.0 (#35829) Post Comment: Handle the case where a comment does not exist (#35810) Clear selected block when clicking on the gray background (#35816) Post excerpt: Don't print the wrapper when there is no excerpt (#35749) [Block] Navigation: Fix padding for social links on mobile (#35824) Fix issue with responsive navigation causing wrapping. (#35820) [Block Editor]: Fix displaying only `none` alignment option (#35822) Add API to access global settings, styles, and stylesheet (#34843) Mobile Release v1.64.1 (#35804) Add resizer to template part focus mode (#35728) Update Changelog for 11.7.1 Gallery block: Only show the gallery upload error message if mixed multiple files uploaded (#35790) Update Changelog for 11.8.0-rc.1 ...
Description
Resetting padding to 0 for links on the responsive navigation menu was affecting social links as well. This PR avoids applying that rule to social links.
How has this been tested?
Using emptytheme with the following markup:
Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).