Is it possible to have the same style for SplitButton and for ChildContent of that very button?
Exactly. That is what I need.
You can use the following styles:
.rz-splitbutton-menu.rz-popup {
color: var(--rz-on-primary);
background-color: var(--rz-primary);
--rz-dropdown-item-hover-color: var(--rz-on-primary-dark);
--rz-dropdown-item-hover-background-color: var(--rz-primary-dark);
}
It is not a systematic solution but a particular. When I have several split buttons on one page and when those buttons are different colors it is not such a simple solution.
Hi @Djordje,
With the latest v.5.2.9 of Radzen.Blazor you can assign an id
and use it to style each popup of those buttons:
<RadzenSplitButton id="myColors" ... >
...
</RadzenSplitButton>
<style>
#popupmyColors {
color: var(--rz-on-primary);
background-color: var(--rz-primary);
--rz-dropdown-item-hover-color: var(--rz-on-primary-dark);
--rz-dropdown-item-hover-background-color: var(--rz-primary-dark);
}
</style>