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

Tree view: Option for text wrap instead of truncation #2895

Open
GCHQ-Developer-299 opened this issue Dec 11, 2024 · 2 comments
Open

Tree view: Option for text wrap instead of truncation #2895

GCHQ-Developer-299 opened this issue Dec 11, 2024 · 2 comments
Assignees
Milestone

Comments

@GCHQ-Developer-299
Copy link
Contributor

Summary

Provide prop for tree items that are too long to wrap instead of truncating, which is the current behaviour.

Current tree view:
Screenshot 2024-12-11 at 15 48 14

Old tree view, with overflow:
Screenshot 2024-12-11 at 15 51 33

💬 Description

Prop could be called "overflowBehaviour" or something

@MI6-255
Copy link
Contributor

MI6-255 commented Dec 13, 2024

Default to text wrap onto the next line, and a prop added to truncate. Option to have it at the tree view level and at a per item level

@MI6-255 MI6-255 moved this from In Refinement to Ready for dev in Intelligence Community Design System Dec 13, 2024
@MI6-255
Copy link
Contributor

MI6-255 commented Dec 13, 2024

Add a guidance code example

@GCHQ-Developer-530 GCHQ-Developer-530 moved this from Ready for dev to Dev In Progress in Intelligence Community Design System Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Dev In Progress
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants