Skip to content

fix(sidebar): use pencil icon for Edit Theme Metadata action - #899

Open
KarunyaChavan wants to merge 1 commit into
WordPress:trunkfrom
KarunyaChavan:fix/edit-theme-metadata-icon
Open

KarunyaChavan wants to merge 1 commit into
WordPress:trunkfrom
KarunyaChavan:fix/edit-theme-metadata-icon

Conversation

@KarunyaChavan

@KarunyaChavan KarunyaChavan commented Oct 30, 2026 •

Copy link
Copy Markdown

The "Edit Theme Metadata" action in the Create Block Theme Site Editor sidebar was rendering without its leading icon. After investigating, I found that the code was importing edit from @wordpress/icons, but the correct exported icon name is pencil. This caused the imported value to be undefined, resulting in the missing icon and a Webpack warning during the build.

Before After
Image Screenshot 2026-10-30 at 8 53 19 PM

Fixes #898

This PR fixes the issue by replacing the invalid edit import with pencil and updating the corresponding PluginSidebarItem icon reference. The pencil icon now renders correctly alongside the other sidebar actions, and the Webpack build no longer reports the missing export warning.

What Changed?

  • Replaced the invalid edit icon import with pencil from @wordpress/icons.
  • Updated the Edit Theme Metadata sidebar item's icon reference to use pencil.
  • Resolved the Webpack warning caused by importing a non-existent icon.

Steps for Testing

  • Run npm run build and verify that there are no warnings related to the missing edit export.
  • Activate the Create Block Theme plugin on a block theme.
  • Open Appearance → Editor and launch the Create Block Theme sidebar.
  • Verify that the Edit Theme Metadata item displays the pencil icon, consistent with the other sidebar actions.

- Replace non-existent `edit` icon export from `@wordpress/icons` with `pencil`.
- This resolves a missing visual icon in the sidebar and eliminates the Webpack build warning.
@KarunyaChavan
KarunyaChavan marked this pull request as ready for review October 30, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing icon next to "Edit Theme Metadata" in Create Block Theme sidebar

1 participant