Skip to content

Badge: Add property to toggle truncation #68091

@jameskoster

Description

This came up while trying to tackle #68020.

The anchor 'badge' in List View is truncated to prevent it from taking over the entire row:

Image

In order to replace this ad hoc element with the Badge component, it would need to be updated to support truncation.

The Text component already supports truncation, so perhaps this is just a case of utilising Text inside Badge, and providing a way to pass the truncate property down to Text.

cc @WordPress/gutenberg-components

Activity

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

Metadata

Assignees

Labels

Design SystemIssues related to the system of combining components according to best practices.[Package] Components/packages/components[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions