Skip to content
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

How to style tooltips #1680

Open
raszkiewicz opened this issue Oct 21, 2019 · 3 comments
Open

How to style tooltips #1680

raszkiewicz opened this issue Oct 21, 2019 · 3 comments

Comments

@raszkiewicz
Copy link

I'm not able to find out which classes I need to update to style tooltips.

@TheSharpieOne
Copy link
Member

You can apply classNames to the various elements you want to target (or just to the wrapper and target your styles via nesting (.className > div > div)).

// Apply class to the wrapper
className: PropTypes.string,
// Apply class to the inner-tooltip
innerClassName: PropTypes.string,
// Apply class to the arrow-tooltip ('arrow' by default)
arrowClassName: PropTypes.string,

image

The style prop is applied to the inner-tooltip (which is the actual tooltip content)

check out https://stackblitz.com/edit/reactstrap-v8-xwtcvk?file=Example.js and inspect the tooltip.

@douglasb99
Copy link

douglasb99 commented Apr 6, 2020

ArrowClassName is not implemented from popover so you cannot style the arrow easily tho

@oootkarsh
Copy link

arrowClassName doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants