Set CSS on label of RadzenCheckBox

I want to make the text in a list of RazenCheckBoxes truncate and display ... in place of the long text.

If I edit the stylesheet directly in the browser:

image

...it works just fine:

image

If I add a .css file

image

...it doesn't:

image

I'm posting here, then I'm going back to google to continue searching.

Thanks,
William

As a follow-up:

I removed the CustomBioReport.razor.css file and moved the above code to the Site.css file in wwwroot/css.

...and everything works.

::sigh:: I need a drink.

1 Like

This happens because of CSS isolation. You need the ::deep prefix if you want to rely Blazor CSS bundling.