Skip to content

Allow custom icon in <SearchItemIcon/> #71491

Open

Description

@dannyreaktiv

What problem does this address?

In the <SearchItemIcon />, it would be nice to be able to use an icon for a custom post type. Right now it appears that only built-in post types are allowed.

https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/src/components/link-control/search-item.js

What is your proposed solution?

Either allow the ICONS_MAP to be filtered, the final icon to be filtered, or allow a way to register the icon in the register_post_type and send it along with REST Response?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions