-
Notifications
You must be signed in to change notification settings - Fork 28
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
Can only use one custom className #21
Comments
Hi, if you need to have two different tooltip styles, you can create two instances of ReactHint, you can check an example here: https://react-hint.js.org/ |
Hi thanks for your comment. I don't want to use v1 (as suggested in issue #13) because then I'd miss out on features introduced in v2 and v3. I also don't want to define two instances when I could have a single configurable instance. Anyway, I found a work-around now for styling the tooltip, even though the CSS does not quite adhere to SASS guidelines and is quite repetitive. If you updated it, I'd need to change all of my CSS. |
Hi, can you provide a repro with your use-case? |
Resolving as there is a workaround. |
if someone uses css modules, you can write your css like this: `
.hintContent |
react-hint/lib/index.js
Line 161 in 3036690
Hi! It would be incredibly helpful if the ability to add more than one custom classname was introduced (perhaps a wrapper class for the outer div).
I am trying to create a tooltip with two different colour settings. I can't find a way for me to do this at the moment. I can have all the styles exactly the way I need, but I can only have one colour version of the tooltip whereas I need two.
Please can you let me know if a small tweak in the code could make this possible? Thanks!
The text was updated successfully, but these errors were encountered: