Repository navigation
Components: Migrate RadioControl to @wordpress/components - #48170
Conversation
|
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 🤖 🔴 Action required: We would recommend that you add a section to the PR description to specify whether this PR includes any changes to data or privacy, like so: Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
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. 🤷 |
The `RadioControl` re-export from `@automattic/jetpack-components` is a pure pass-through to `@wordpress/components`; importing from the upstream package directly drops one hop without changing rendered output. The `@automattic/jetpack-components` wrapper is left in place for other potential consumers. Part of #48160.
ba9baa2 to
e37ca4b
Compare
Proposed changes
RadioControlfrom@wordpress/componentsdirectly instead of the pass-through re-export in@automattic/jetpack-components. Prop API is identical, so no call-site changes beyond the import.RadioControlre-export in@automattic/jetpack-componentsis left in place.Target is
@wordpress/components(not@wordpress/ui) because@wordpress/ui@0.11.0does not ship aRadioControl, and the Gutenberg Storybook's Design System / Components sidebar doesn't list one.Part of #48160.
Screenshots
Baseline + feature JN site: `thoughtfully-remarkable-device.jurassic.ninja` · rsync target: `plugins/jetpack`
Note: before/after files are byte-identical (`cmp` clean) — confirming the pass-through is a strict no-op and this change introduces no rendered-DOM difference. Screenshots are hosted on a sibling orphan branch (`screenshots/radio-control-migration-48170`) so this PR's file diff stays pure-code.
Testing instructions