I can use the className accessor for this purpose. So I set it the following way:
<yaga-tooltip [direction]="'right'" [permanent]="true" [offset]="tooltipOffset" [content]="label" [className]="'myCSS'"></yaga-tooltip>
In css file I have:
.myCSS {
background: red;
}
But the tooltip background is not displayed in red color. I debugged a bit and found that className option is set successfully, but tooltip's _container.style doesn't change.
Hi,
I want to change the tooltip background. According to documents:
http://leafletjs.com/reference-1.2.0.html#divoverlay
I can use the className accessor for this purpose. So I set it the following way:
<yaga-tooltip [direction]="'right'" [permanent]="true" [offset]="tooltipOffset" [content]="label" [className]="'myCSS'"></yaga-tooltip>
In css file I have:But the tooltip background is not displayed in red color. I debugged a bit and found that className option is set successfully, but tooltip's _container.style doesn't change.
Can you, please, fix this?