79166596

Date: 2024-11-07 13:14:58
Score: 1
Natty:
Report link

We use Telerik in the company I work for and I've faced the same issue, normally modifying the css of a component from a component library sometimes can be difficult since it can change the behavior of the component (talking from my experience). But the workaround I found to modify any telerik component css is to use within the .razor page (or .cshtml) you are using it.

Let me show an example, I've created a .razor file called Example.razor which has this codecode

To demonstrate what I said before we are going to use blazor css isolation

css

As we can see I've created a css class, if we use that css class in the button component the background color wouldn't not apply. But if we use the tag withtin the same .razor file this is going to work

css2

buttonexample

This way yoy can achieve what you are trying to do, I hope this enlighten you. (same thing can sometimes apply to the script tag)

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: TheMax370