Skip to content

Jetpack: Import @wordpress/base-styles modules directly - #54289

Merged
xavier-lc merged 1 commit into
trunkfrom
update/jetpack-2754-base-styles-jetpack-plugin
Oct 30, 2026
Merged

xavier-lc merged 1 commit into
trunkfrom
update/jetpack-2754-base-styles-jetpack-plugin

Conversation

@xavier-lc

Copy link
Copy Markdown
Contributor

Part of JETPACK-2754

@automattic/jetpack-base-styles/gutenberg-base-styles only @forwards six @wordpress/base-styles modules. plugins/jetpack already declares @wordpress/base-styles, so the wrapper adds nothing and hides where a mixin or variable comes from. #52193 made the same switch in two files.

Proposed changes

  • Replace each wrapper @use … as gb in plugins/jetpack (47 files) with @uses of the specific modules the file uses, under their default namespaces (mixins., variables., colors., breakpoints.).

Related product discussion/links

Does this pull request change what data or activity we track or use?

No.

Testing instructions

No visible change is expected.

  • Compile each touched file with Dart Sass on trunk and on this branch and diff the output. With /** */ comments stripped, every file matches. The only differences are which @wordpress/base-styles doc comments get emitted, and production builds drop those (cssnano via CssMinimizerPlugin).

🤖 Generated with Claude Code

The project declares @wordpress/base-styles itself, so the
@automattic/jetpack-base-styles/gutenberg-base-styles wrapper adds nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K4t4VY7ojGc1sr9Cb1z84Z
@github-actions

github-actions Bot commented Oct 29, 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 update/jetpack-2754-base-styles-jetpack-plugin branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack update/jetpack-2754-base-styles-jetpack-plugin

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 commented Oct 29, 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

@xavier-lc
xavier-lc merged commit 5fff009 into trunk Oct 30, 2026
94 of 96 checks passed
@xavier-lc
xavier-lc deleted the update/jetpack-2754-base-styles-jetpack-plugin branch October 30, 2026 10:02
@github-actions github-actions Bot removed the [Status] Needs Review This PR is ready for review. label Oct 30, 2026
@github-actions github-actions Bot added this to the jetpack/16.4 milestone Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment