Repository navigation
Traffic settings: Restore spacing below the SEO dashboard notice - #53622
Conversation
The "Jetpack SEO has its own dashboard" notice sat flush against the Jetpack Stats card below it. SimpleNotice used to carry a 24px bottom margin through the `dops-notice` class; since it moved to the `@wordpress/ui` Notice, it carries none, and the settings cards only have a bottom margin of their own. The gap is missing whether Stats is on or off, but the borderless "Activate Jetpack Stats" card makes it most obvious. Give the notice the same 24px bottom margin the cards use.
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Jetpack plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |
Fixes JETPACK-3046
Proposed changes
The gap went away in #52015.
SimpleNoticeused to get its bottom margin from thedops-noticeclass; it's now backed by the@wordpress/uiNotice, which has none, and the settings cards only set a bottom margin of their own. It happens whether Stats is on or off, but it's easier to spot with Stats off, since the "Activate Jetpack Stats" card has no border.I considered adding the margin to every
SimpleNoticeinstead. That would double up the spacing in the places that already handle it:JetpackNoticesandJetpackConnectionErrorsspace their notices with aStackgap, and most other notices sit inside a card. As far as I can tell, this one is the only notice that sits on its own between two cards, so the fix stays scoped to it.Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
The notice only shows on sites using the new SEO experience, where it replaces the legacy SEO sections.
wp-admin/admin.php?page=jetpack_modules, hover over "Jetpack Stats", and click "Deactivate".wp jetpack module deactivate statsworks too.