Is there a way to stylize the icon of Lightning-button using LWC?

188    Asked by Aalapprabhakaran in Salesforce , Asked on Aug 28, 2023

 If I want to change the style of a Lightning-button-icon, how can I do it?

Stylizing the Lightning-button-icon can be tricky. The below styling hooks can be used to change the size and color of a Lightning-button-icon.

.custom-css {
    --lwc-squareIconMediumContentAlt:2rem;
    --slds-c-icon-color-foreground:green;
}


Your Answer

Interviews

Parent Categories