Contents
For a bare icon with transparent container, add slds-button_icon-container to the . To add a border, use the slds-button_icon-border class instead. For a neutral themed button icon, with border and a filled background, use the slds-button_icon-border-filled class to the slds-button class.
What is a utility icon?
Utility icons are simple, single-color glyphs that identify labels and actions across form factors. View Utility Icons.
What is another word for utilities?
What is another word for utilities?
| electricity | energy |
|---|---|
| electromagneticism | electron |
| hydro | ignition |
| leccy | light |
| magneticism | service |
I’m using the lightning-button-icon inside the SLDS button. (Reason : to Change the button color). button icon is in grey color variant=”container” how to change the forward button color to white. Thanks for contributing an answer to Salesforce Stack Exchange!
Use the icon-name attribute to add a utility icon to the button. The SLDS utility icon category provides nearly 200 utility icons that can be used in lightning-button along with label text. Although SLDS provides several categories of icons, only the utility category can be used in lightning-button.
Are there any icons for Lightning in Salesforce?
Icons are not available in Lightning Out, but they are available in Lightning Components for Visualforce and other experiences. If you’re creating forms to interact with Salesforce records, consider using lightning-record-form or lightning-record-edit-form.
Button icons are button elements that represent their behavior with an icon instead of text. The button itself should have the classes slds-button and slds-button_icon, while the svg icon has slds-button__icon on it.