Skip to content

Box Shadow on Tooltip Component but not on arrow #934

Closed Answered by gilbarbara
johnmema asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @johnmema

The custom Tooltip component doesn't include the arrow.
Instead of setting the box shadow on the custom component, override the floater styles.
Be aware the box-shadow only works for squared shapes. You need to use drop-shadow instead.

floaterProps={{
  styles: {
    floater: {
      filter: "drop-shadow(2px -6px 4px #ff0044)"
    }
  }
}}

This can be done globally by setting a prop on the Joyride component or by step.
Does it work for you?

Replies: 1 comment 1 reply

Comment options

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

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