freenowtech / wave

Design System of FREE NOW
https://wave.free-now.com
Apache License 2.0
64 stars 22 forks source link

Tooltip content background color is inverted #428

Closed martimalek closed 2 months ago

martimalek commented 4 months ago

Relevant code

The Tooltip content is wrapped in InvertedColorScheme and applies a wrong background-color and color

image

What was expected to happen?

The tooltip content background color is consistent with it's container and the text color is correctly inverted

image

Reproduction

Check it in our docs

Extra

If I just remove the InvertedColorScheme the background color of the text will be transparent so it will adopt the container's one ("background-backdrop", which is correct), but the text color is still "foreground-primary" (black) and cannot be seen, I think we may be missing a semantic color equivalent to "background-backdrop" but for the foreground (e.g. "foreground-backdrop" 🤔 ?)

image