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

[Bug]: Tooltip issue with large text without spaces #18161

Closed
2 tasks done
sandraigc opened this issue Nov 26, 2024 · 0 comments · Fixed by #18502
Closed
2 tasks done

[Bug]: Tooltip issue with large text without spaces #18161

sandraigc opened this issue Nov 26, 2024 · 0 comments · Fixed by #18502
Assignees
Labels

Comments

@sandraigc
Copy link

sandraigc commented Nov 26, 2024

Package

@carbon/web-components

Browser

Chrome

Package version

@carbon/[email protected]

React version

No response

Description

When we use a component with tooltip that has a large text that does not have spaces it overflows in a weird way.

Image

Can we have a way to format the tooltip content, maybe as part?
Or add "word-break: break-word" to .cds--tooltip-content?

Thanks

Reproduction/example

https://stackblitz.com/edit/github-srmfes?file=index.html

Steps to reproduce

Create a web component with a large tooltip text without spaces

<cds-button
      tooltip-text="VeryBigTextWithoutSpaceVeryBigTextWithoutSpace"
      tooltip-position="bottom"
    >
      Button
 </cds-button>

Suggested Severity

None

Application/PAL

No response

Code of Conduct

@2nikhiltom 2nikhiltom added the package: @carbon/web-components @carbon/web-components label Nov 27, 2024
@sstrubberg sstrubberg moved this to 🕵️‍♀️ Triage in Design System Dec 10, 2024
@alisonjoseph alisonjoseph moved this from 🕵️‍♀️ Triage to ⏱ Backlog in Design System Dec 11, 2024
@riddhybansal riddhybansal self-assigned this Jan 22, 2025
@riddhybansal riddhybansal moved this from ⏱ Backlog to 🚦 In Review in Design System Feb 3, 2025
@github-project-automation github-project-automation bot moved this from 🚦 In Review to ✅ Done in Design System Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

4 participants