CssClass on RadzenTooltip works partly

The CssClass in the TootipOptions does only work partly. Setting background-color and color does not change the colors. The opacity however is changed.

Hi @PaulSinnema,

The background of the tooltip is set via a nested class: https://github.com/radzenhq/radzen-blazor/blob/master/Radzen.Blazor/themes/components/blazor/_tooltip.scss#L9

You need to override it

.my-custom-tooltip .rz-tooltip-background {
   background: red;
}

Ok, that is suprising. Can you tell me what’s the use of the CssClass property? Does it have any significance?

Yes, it allows you to set a custom CSS class to a tooltip and customize its appearance. Indeed you need to use a nested CSS selector but it is still possible.