You need to sign in to do that
Don't have an account?
Shubham Bansal 45
change ligthing-tab selected tab color(which was by default blue) to another color in lwc
How to change selected tabset background color in lwc. its urgent
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
All Answers
Please use the custom CSS.
slds-tabs_default__link{
color:red;
}
Hi Khushmeet,
Thanks for your time.
But
It still not working.....
Can you please share the code so it will be helpful to resolve your issue.
Thanks
HTML:
<template>
<lightning-card >
<h3 slot="title">
<lightning-icon icon-name="standard:opportunity_splits" size="small"></lightning-icon>
<span class="slds-text-heading_small">
<strong>Partner Score Card</strong>
</span>
</h3>
<lightning-tabset>
<template if:true={Sections}>
<template for:each={Sections} for:item="item">
<lightning-tab key={item} label={item.name} class="tab">
<div style="padding: 0 3% 0 3%;">
<c-pscore-card-child
split-field={item.name}
user-ids={UserId}>
</c-pscore-card-child>
</div>
</lightning-tab>
</template>
</template>
</lightning-tabset>
</lightning-card>
</template>
CSS:
.slds-tabs_default__link{
color:red;
}
Please inspect and get the class name ..Copy paste the class name and then add color.
Let me know if this worked