Tooltip CSS properties #96
-
Hi, I tried this: Furthermore, the Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's a little confusing right now, but technically the arrow lives separately from the tooltip due to how the library we use calculates the arrow. this should work: wa-tooltip::part(base__arrow) {
background-color: red;
}
wa-tooltip {
--background-color: red;
} https://codepen.io/paramagicdev/pen/poMMxbW?editors=1000 I don't particularly love and for this background color CSS var combine it for the arrow and the tooltip itself so that --background-color behaves as expected. Thanks for the issue!! |
Beta Was this translation helpful? Give feedback.
It's a little confusing right now, but technically the arrow lives separately from the tooltip due to how the library we use calculates the arrow.
this should work:
https://codepen.io/paramagicdev/pen/poMMxbW?editors=1000
I don't particularly love
base__arrow
I'll see if we can change that to just::part(arrow)
and for this background color CSS var combine it for the arrow and the tooltip itself so that --background-color behaves as expected. Thanks for the issue!!
@LeaVerou @claviska