Skip to content

Traffic settings: Restore spacing below the SEO dashboard notice - #53622

Merged
jeherve merged 2 commits into
trunkfrom
fix/traffic-seo-moved-notice-spacing
Oct 15, 2026
Merged

jeherve merged 2 commits into
trunkfrom
fix/traffic-seo-moved-notice-spacing

Conversation

@jeherve

@jeherve jeherve commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Fixes JETPACK-3046

Proposed changes

  • On Jetpack › Settings › Traffic, the "Jetpack SEO has its own dashboard" notice sat right against the Jetpack Stats card below it, with no gap. This gives the notice the same 24px bottom margin the settings cards use.

The gap went away in #52015. SimpleNotice used to get its bottom margin from the dops-notice class; it's now backed by the @wordpress/ui Notice, 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 SimpleNotice instead. That would double up the spacing in the places that already handle it: JetpackNotices and JetpackConnectionErrors space their notices with a Stack gap, 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.

Before After
before after

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.

  1. On a self-hosted test site, turn on the SEO dashboard with a small mu-plugin:
    <?php
    add_filter( 'rsm_jetpack_seo', '__return_true' );
    If Jetpack › Settings › Traffic shows a "SEO has a new home" banner instead of the notice, click "Use the new experience".
  2. To match the screenshots, disable Jetpack Stats: go to wp-admin/admin.php?page=jetpack_modules, hover over "Jetpack Stats", and click "Deactivate". wp jetpack module deactivate stats works too.
  3. Go to Jetpack › Settings › Traffic.
  4. Check that there's a gap between the "Jetpack SEO has its own dashboard" notice and the "Activate Jetpack Stats" card, matching the gap between the other cards.
  5. Turn Stats back on, and check that the notice and the "Jetpack Stats" card are spaced the same way.

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.
@jeherve jeherve added [Status] Needs Review This PR is ready for review. [Feature] SEO Tools Tools for improving a site's search engine optimization. [Type] Bug labels Oct 14, 2026
@jeherve jeherve self-assigned this Oct 14, 2026
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack), and enable the fix/traffic-seo-moved-notice-spacing branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack fix/traffic-seo-moved-notice-spacing

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions Bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ Admin Page React-powered dashboard under the Jetpack menu labels Oct 14, 2026
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

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:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

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.

@jp-launch-control

Copy link
Copy Markdown

Code Coverage Summary

This 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. 🤷

Full summary · PHP report · JS report

@haqadn haqadn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@jeherve
jeherve merged commit d48f77e into trunk Oct 15, 2026
88 checks passed
@jeherve
jeherve deleted the fix/traffic-seo-moved-notice-spacing branch October 15, 2026 09:56
@github-actions github-actions Bot removed the [Status] Needs Review This PR is ready for review. label Oct 15, 2026
@github-actions github-actions Bot added this to the jetpack/16.4 milestone Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Admin Page React-powered dashboard under the Jetpack menu [Feature] SEO Tools Tools for improving a site's search engine optimization. [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Type] Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants