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]: Strange white box appears around links in tooltip #14701

Closed
2 tasks done
vsnichols opened this issue Sep 22, 2023 · 1 comment
Closed
2 tasks done

[Bug]: Strange white box appears around links in tooltip #14701

vsnichols opened this issue Sep 22, 2023 · 1 comment

Comments

@vsnichols
Copy link

Package

carbon-components

Browser

Chrome, Firefox

Package version

Any version

Description

When the use opens a tooltip with a link the link is in a white box which looks weird and distracts from the actual content. Seems to happen across browsers.

Sometimes it actually seems to push the content around in order to fit it into the box.

Screenshots

Screenshot 2023-09-22 at 6 03 58 PM Screenshot 2023-09-22 at 6 10 32 PM

Steps to reproduce

Go to https://cloud.ibm.com/kubernetes/overview and click on tooltip in pricing section to see an example but appears everywhere where tooltip has a link.

FYI I had to choose a "Package" but I am a designer and am not sure which was the correct selection

Code of Conduct

@tay1orjones
Copy link
Member

@vsnichols Hi! This is intentional, it's the focus ring. The ring gets the inverse focus token --cds-inverse-focus-ui when inside a tooltip/popover. Focus is being placed on the link when the tooltip opens, and so the ring gets placed around it. This matches the visual style of the link placed in the Toggletip example here, though the link does not get focus immediately when it opens in our example. It might be application code that's doing the immediate focus, I'm not sure.

I'm going to close this as it's expected behavior but I'm happy to answer any further questions or concerns for you here!

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

2 participants