I've been driving myself insane trying to figure out how to remove the gradient effect when clicking a panel menu item.
I've been using the browser dev tools changing all the css but can't for the life of me find the relevant part has anyone got any ideas ?
Are you referring to the ripple effect? It is enabled by default in the Material theme as required by specification. You can use a different theme if you don't want it.
I´m trying this solution that you proposed. And I can't find the path _content/Radzen.Blazor/css/material-base.css in my project, to paste the modified material-base.css file from the repository.
Could you help me please?
Ok, that I have come to understand in those steps, we have to link the new material-base.css file, from _host.cshtml. So let's make link in this way: .
Ok, I tried it like this, and it didn't work. And I have verified that material-base.css file that all the controls that have @include rz-ripple($pseudo: true) have been properly commented; What could be wrong?
In my application, we are using humanistic theme, in the wwwroot/css folder we complement it with more code both in the site file and in another file, which we link from _Host. I'm telling this in case it helps, I don't know if it's incompatible to be referencing two Radzen themes.
Edit material-base.scss and remove all CSS rules that contain rz-ripple e.g.
.rz-button {
@include rz-ripple($pseudo: true);
}
Save material-base.scss and build the project.
In _Hosts.Cshtml put : and in wwwroot/css I have pasted material-base.css that I have copied of the Radzen.Blazor clone project.
After all these steps, I have verified that it has been used in my project, the new material.base.css file, from the path wwwroot/css, and it is still seen the ripple effect.
The problem that the ripple effect is still being seen, could be because there be another step to do more?
@korchev
Ok, look at the developer tools, it seems that it is because when loading the application the material-base.css file is called from wwwroot/css and also the same file from _content.
I have already tried ways to disable that call to _content without success. In my project there is no call to _content/Radzen.Blazor/css/material-base.css
Do you have any idea to solve it?
@korchev
Okey thanks. The thing, is that I think you think that Radzen is installed in my project, with the Radzen repository, and really Radzen is installed with Nuget. If I'm not mistaken, I believe, Is why I won't be able to access the Radzen.Themes libraries and delete the base-material one?
The built-in material theme that ships with the Radzen.Blazor nuget package has the ripple effect. If you want to remove the ripple effect you need to use a customized version of the theme (or use another theme which doesn't have the ripple). This thread shows how to do that. Nothing more to add really.