Tabs Component Selected Background Color

Hello,

I've been trying to attempt to have my currently selected tab to have a unique background (I want all other tabs white, and the selected tab a green background with black text).

So far, I've only been able to change the color of the border and text as per user selection of tab. How can I also have the background color changed with user selection on the tab?

So far, I've been attempting this with enclosed styling and CSS.

<RadzenTabsItem Text="Project" @bind-SelectedIndex=@selectedIndex
style=@($"border: 2px solid #79b8ae; --rz-tabs-tab-color: {(condition ? "#000000" : "inherit")}; --rz-tabs-tab-selected-color: {(condition ? "#79b8ae" : "inherit")}")>

.rz-tabview-nav-link .rz-tabview-nav-item .rz-tabview-nav-link .rz-tabs-tab-selected-color {
    font-weight: bold;
    font-size: 18px;
    background-color: #79b8ae;
}

.rz-tabview-nav-link.rz-state-active {
    font-weight: bold;
    font-size: 18px;
    background-color: #79b8ae;
}

If you have any ideas on how to resolve this I would appreciate the advice.

Thank you

Simon

Hi @dahjakl,

Try something like this:

<RadzenTabs  style="--rz-tabs-tab-selected-background-color: green;--rz-tabs-tab-selected-color: black" >