I can't manage to put a sldsclass on my buttons in a pageBlockButtons the class applied by the pageBlockButtons seems to override the class I put because it is higher in the hierarchy.

<apex:pageBlockButtons location="bottom">
    <apex:commandButton action="{!save}" value="Save"/>
    <apex:commandButton action="{!cancel}" value="Cancel" styleClass="slds-button slds-button_destructive"/>

But my buttons still have the same styling

enter image description here

  • see this answer for a possible solution
    – cropredy
    Jul 23, 2022 at 21:51


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.