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]: React AI Slug tooltip doesn't work in shadowroot #18381

Open
2 tasks done
ethanwinters opened this issue Jan 17, 2025 · 0 comments
Open
2 tasks done

[Bug]: React AI Slug tooltip doesn't work in shadowroot #18381

ethanwinters opened this issue Jan 17, 2025 · 0 comments
Labels
adopter: strategic-product Work-stream that directly effects the Product-led Growth initiative. component: ai-label role: dev 🤖 severity: 4 https://ibm.biz/carbon-severity type: bug 🐛

Comments

@ethanwinters
Copy link

Package

@carbon/react

Browser

Chrome

Package version

1.68.0

React version

No response

Description

If I render AILabel inside of a ShadowDOM, it always thinks there was a click target outside the component and it auto closes. We just moved to the web component version which is fine, but we don't love being in a hodge podge of "some React components don't work in shadowroot" and "some web components are not as mature and/or don't allow enough CSS styling allow us to fit it in a chat window narrow view port".

Reproduction/example

https://stackblitz.com/edit/github-b43fx6-ovrnaf?file=src%2Fmain.jsx

Steps to reproduce

Click on the AI label. Nothing happens.

Suggested Severity

Severity 4 = Unrelated to a user task, has a workaround or does not need a workaround.

Application/PAL

watsonx Orchestrate, Carbon AI Chat

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adopter: strategic-product Work-stream that directly effects the Product-led Growth initiative. component: ai-label role: dev 🤖 severity: 4 https://ibm.biz/carbon-severity type: bug 🐛
Projects
Status: ⏱ Backlog
Development

No branches or pull requests

2 participants