Repository navigation
Conversation
🤖 PR meta 🤖📦 Bundle sizeSize Change: +29 B (0%) Total Size: 9.06 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. Custom Completer: should allow newlines after multiple option completions in
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Deprecate
Tooltipfrom@wordpress/componentswith a runtime warning, following the adapter approach in #83040.Why?
Tooltipis already marked not recommended in Storybook and theuse-recommended-componentslint rule. New consumers should useTooltipfrom@wordpress/ui.How?
Route the public export through an adapter that warns of deprecation in WordPress 7.2 and planned removal in 7.4. Keep the internal implementation silent so components such as
Buttoncan continue using it. The adapter preserves the existing props, ref, and rendering behavior.Move the Tooltip stories to Deprecated while preserving their URLs, and add the replacement notice to the README.
Testing Instructions
wp.components.Tooltip is deprecated since version 7.2 and will be removed in version 7.4. Please use Tooltip from @wordpress/ui instead.labeland enableshowTooltip. Confirm its tooltip still appears and nowp.components.Tooltipdeprecation warning is logged after a fresh page load.Screenshots or screencast
The open tooltip looks the same before and after the deprecation.