Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create string overflow utility #6721

Open
davidmenendez opened this issue Jan 16, 2025 · 0 comments
Open

Create string overflow utility #6721

davidmenendez opened this issue Jan 16, 2025 · 0 comments

Comments

@davidmenendez
Copy link
Contributor

we now have a utility to handle truncating / overflowing arrays of items with useOverflowItems for components like TagOverflow and ActionBar. The next piece we need is to implement a utility that can consolidate the same functionality in StringFormatter and DelimitedList.

The overflow functionality in these two components is essentially just converting the element into a popover if the width exceeds the container. PageHeader has very similar logic using the checkHeightOverflow utility. All of these pieces should be able to utilize the same overflow behavior to deal with truncating a single long string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In progress
Development

No branches or pull requests

3 participants