bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Tooltip styling

Open csabattilas opened this issue 12 years ago • 2 comments

Is there a way to add background colour style to a tooltip? I'm using the tooltip for svg so I have to add it to the body. My problem is that I cannot set the background colour programatically.

csabattilas avatar Jul 31 '14 13:07 csabattilas

Sure, you can change bootstrap's CSS and / or provide a custom template: https://github.com/angular-ui/bootstrap#customize-templates

pkozlowski-opensource avatar Aug 15 '14 15:08 pkozlowski-opensource

I'm not sure that it would help, I'd like to have different background colors for the same template. I can use a scope variable in my controller something like "background-color: #c00" as tooltip scope inherits from the parent, then add the variable to my template, but I find it a bit hard to understand and follow the scope chains. I was thinking more about adding a new parameter to the tooltip as background-color or maybe style. What do you think? Thank you

csabattilas avatar Aug 19 '14 06:08 csabattilas