Skip to content

Tooltip CSS properties #96

Discussion options

You must be logged in to vote

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 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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mirkocutri
Comment options

Answer selected by mirkocutri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants