-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Use labels in getVisualTypeName() #71492
Copy link
Copy link
Closed
Labels
[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)Link components (LinkControl, URLInput) and integrations (RichText link formatting)[Package] Block editor/packages/block-editor/packages/block-editor[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)[Package] Block editor/packages/block-editor/packages/block-editor[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?
gutenberg/packages/block-editor/src/components/link-control/search-item.js
Line 150 in 8899bb5
In the
getVisualTypeName()function, the results are usually going to be the slugs for the post types, rather than all nice human readable labels from the Post Type Objects.What is your proposed solution?
Is there a way for the
getVisualTypeName()to extract and return the single label from the Post Type Object? Does it come along in the suggestion?