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]: Copy to clipboard tooltip truncated with type=multi CodeSnippet component #13346

Closed
2 tasks done
marcellobarile opened this issue Mar 14, 2023 · 1 comment
Closed
2 tasks done

Comments

@marcellobarile
Copy link

marcellobarile commented Mar 14, 2023

Package

@carbon/react

Browser

Chrome

Package version

^1.24.0

Description

When the CodeSnippet component is configured with type=multi, the "Copy to clipboard" tooltip gets truncated and it's not possible to change its alignment.

See: https://stackblitz.com/edit/github-737hdm-eih3ir?file=src%2FApp.jsx

Screenshots

image

Steps to reproduce

  • Implement a CodeSnippet component with type=multi
  • Make sure that this component gets the 100% of the window's width (or simulate other cases like placing it at the right side of the screen)
  • Note that the tooltip appearing on the mouse over the copy button gets truncated

Code of Conduct

@alisonjoseph
Copy link
Member

This is working in the latest version of @carbon/react https://stackblitz.com/edit/github-737hdm-evnbzc?file=src%2FApp.jsx

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

No branches or pull requests

4 participants