-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Box-shadow on the tooltip element #40
Comments
Hey @thomas-kahn, for newer browsers I believe this can be done for the css triangle with |
That would be great! |
I tried passing custom class name with |
Hey @thomas-kahn and @denisdimitrov I haven't really played around much with this yet. I'm kind of thinking the css arrow trick is a bit out dated and maybe I should just use and SVG for the arrow. This would be a breaking change, but I'm planning a major version so I could do it with that. I have a bit of a decision to make in the overall direction of the library (try to add events to fragments in React, then get away from adding a wrapping DOM element, or continue to add the wrapping element). Once I make that fundamental decision I can start work on the major version that would likely involve changing how the arrow works as well. Sorry there isn't a quicker solution, but hopefully this all won't take that long. I'll definitely keep this thread updated as I can see other folks wanting drop shadow now that the "flat-ui" trend is starting to cycle back to a more layered look again. |
We solved the problem for now by changing the design, but I think that adding shadow to the tooltip would be an appreciated feature in the long run. Yes - flat and plain designs are still predominant and the design I was implementing is no exception. But when it comes to modals and tooltips, designers often want to accentuate the feeling that it’s something that floats on top of the rest of the page and a subtle shadow is a great way to accomplish this. |
I got it running by using both .react-tooltip-lite {
...styles;
}
.react-tooltip-lite-arrow {
...styles;
} Thanks! |
Hello everyone I believe this is solved by a recent contribution that adds the "arrowContent" prop. This way you can render the arrow with an SVG and style that as you would like, you can see an example here: https://codepen.io/bsidelinger912/pen/WOdPNK under the "colors" heading by hovering over the text that says: "even more control". |
Many tooltips are designed with a box-shadow. Providing markup and a CSS configuration to be able to add a box shadow would be nice!
I have attached the tooltip I'm working on right now.
The problem is the arrow.
The text was updated successfully, but these errors were encountered: