I have applied css to my lightning Button to change the color of it. And I have class named Morning inside my button
.THIS.Morning{
//Mornig is class inside my button
color: red;
}
I have applied css to my lightning Button to change the color of it. And I have class named Morning inside my button
.THIS.Morning{
//Mornig is class inside my button
color: red;
}
You might be good with the normal button variant, have you tried it?
<lightning:button variant="destructive-text"/>
https://developer.salesforce.com/docs/component-library/bundle/lightning:button/exampleYou can use normal
<button>
and style it with Salesforce-defined classes + whatever else you need. Use Lightning Design System: https://www.lightningdesignsystem.com/components/buttons/If it absolutely has to be a
<lightning:button>
and variant's aren't enough - look into button "styling hooks". More info: