tooltip icon indicating copy to clipboard operation
tooltip copied to clipboard

How to change tooltip background-color?

Open jyotiarora2610 opened this issue 6 years ago • 5 comments

Using overlayClassName and overlayStyle it is changing the background-color, but with some white boundary. But i need all tooltip background with some different color. I'm not able to provide background-color to the rc-tooltip container. Please help me on this.

jyotiarora2610 avatar Jun 13 '18 08:06 jyotiarora2610

You can always modify the css or take the .less files from project, modify them and recompile them into your project

burtek avatar Jun 18 '18 11:06 burtek

I'd also like this feature @jyotiarora2610

Abdisalan avatar Oct 04 '18 15:10 Abdisalan

Customizing styling is a basic feature of a tooltip library. Sure i can

always modify the css or take the .less files from project, modify them and recompile them into your project

But forking the library to change the tooltip background? seriously?

matthew-socialcore avatar Nov 30 '18 17:11 matthew-socialcore

@matthew-socialcore I know, just threw a workaround that came to my mind.

burtek avatar Dec 01 '18 00:12 burtek

i did actually end up doing this @burtek and it wasn't that much work. I just needed to

  • import rc-tooltip/assets/bootstrap_white.css
  • restyle these classes: .rc-tooltip, .rc-tooltip-content, .rc-tooltip-arrow, .rc-tooltip-inner

So, apologies for the exaggeration!

matthew-socialcore avatar Dec 04 '18 13:12 matthew-socialcore