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

Part of the tooltip title can be hidden or overflow. #1787

Open
AnhVu23 opened this issue Jan 3, 2025 · 0 comments
Open

Part of the tooltip title can be hidden or overflow. #1787

AnhVu23 opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@AnhVu23
Copy link

AnhVu23 commented Jan 3, 2025

Bug summary

In the bar chart, the tooltip title, which is long and does not have any spaces, can be hidden or overflow.

Expected behavior

The tooltip title should either display all the content, or break into new line.

Actual behavior

The tooltip can either be overflow or hidden if the string is too long and does not have any spaces.

Steps to reproduce the problem

Check this codesandbox: https://codesandbox.io/p/sandbox/shopify-polaris-viz-react-typescript-playground-forked-3xsxy6?file=%2Fsrc%2Findex.tsx%3A12%2C13

Reduced test case

https://codesandbox.io/p/sandbox/shopify-polaris-viz-react-typescript-playground-forked-3xsxy6?file=%2Fsrc%2Findex.tsx%3A12%2C13

Specifications

  • Polaris-Viz version number: 15.3.2
  • Browser: Chrome
  • Device: MacBook Pro
  • Operating System: Sequoia 15.1.1
@AnhVu23 AnhVu23 added the bug Something isn't working label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant