themes icon indicating copy to clipboard operation
themes copied to clipboard

Components Inside a `Tooltip` Have Low Contrast

Open snelsi opened this issue 1 year ago • 1 comments

Description

When the Theme appearance is set to light, the Tooltip has a dark background. When the appearance is dark, the Tooltip has a light background. This results in some components having terrible/unreadable contrast if you try to use them inside the Tooltip.

Here's an example with Link, Badge, and Code components:

image image

Expected behaviour

Apply Theme with the appearance opposite to the one currently selected to the inner content of the Tooltip.

Codesandbox:

https://codesandbox.io/p/sandbox/still-grass-gh2xpt

snelsi avatar Mar 27 '24 14:03 snelsi

Why is it labelled as a request? It seems like a serious a11y bug to me.

matewka avatar Feb 05 '25 12:02 matewka