-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Allow custom icon in <SearchItemIcon/> #71491
Copy link
Copy link
Open
Labels
[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)Link components (LinkControl, URLInput) and integrations (RichText link formatting)[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Metadata
Metadata
Assignees
Labels
[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)Link components (LinkControl, URLInput) and integrations (RichText link formatting)[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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_MAPto be filtered, the final icon to be filtered, or allow a way to register the icon in theregister_post_typeand send it along with REST Response?