Skip to content

Migrate __experimentalText and __experimentalHeading to @wordpress/ui Text in Inspector Popover Header#77449

Open
saranshsinhaa wants to merge 3 commits into
WordPress:trunkfrom
saranshsinhaa:feat/issue-77265-block-editor-inspector-popover-header
Open

Migrate __experimentalText and __experimentalHeading to @wordpress/ui Text in Inspector Popover Header#77449
saranshsinhaa wants to merge 3 commits into
WordPress:trunkfrom
saranshsinhaa:feat/issue-77265-block-editor-inspector-popover-header

Conversation

@saranshsinhaa

@saranshsinhaa saranshsinhaa commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

What?

Part of: #77265

Why?

Now that the required tooling is in place, we can start applying consistent text styling across the site and block editor. This can be done by replacing instances of __experimentalText and __experimentalHeading, as well as any ad hoc styled text, with the Text component from the UI package.

How?

Replaced the __experimentalText and __experimentalHeading with @wordpress/ui Text in Inspector Popover Header

Testing Instructions

  1. Add a new post
  2. Add any content and click on publish button
  3. In the pre-publish panel that appears, locate the Visibility section and expand it.
  4. The "Visibility" heading and the helper text are the migrated text and heading

Note: InspectorPopoverHeader is used in many other places across the editor. The Visibility section is used here as one representative example.

Before After
Screenshot 2026-05-08 at 7 06 53 PM image

@github-actions github-actions Bot added the [Package] Block editor /packages/block-editor label Apr 17, 2026
@saranshsinhaa saranshsinhaa marked this pull request as ready for review April 21, 2026 08:37
@saranshsinhaa saranshsinhaa requested a review from ellatrix as a code owner April 21, 2026 08:37
@github-actions

Copy link
Copy Markdown

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Required label: Any label starting with [Type].
  • Labels found: [Package] Block editor.

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: saranshsinhaa <saranshsinha@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Block editor /packages/block-editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant