Button component style

Support MB Blocks Button component styleResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33059
    DANIEL FITIPALDO R.DANIEL FITIPALDO R.
    Participant

    I am using MB Builder to create a block that I will use to enter data in a post in edit mode.
    I have added a Button component and have seen that it has the "is-secondary" class of wordpress standard styles, I need the button to have the "is-primary" class style.
    I tried to change the style by modifying the button field attribute "Custom CSS class" with "is-primary" but without success.
    Is there a way I can change the button style from "is-secondary" to "is-primary"?

    #33063
    Long NguyenLong Nguyen
    Moderator

    Hi Daniel,

    If you are using the Builder, please use the option "Custom HTML5 attributes" to add the class for the button. Screenshot https://share.getcloudapp.com/mXuJmeXJ

    Refer to the documentation https://docs.metabox.io/fields/button/

    #33064
    DANIEL FITIPALDO R.DANIEL FITIPALDO R.
    Participant

    Thank you Long!.
    I added the class "components-button is-primary" to the "Custom HTML5 attributes" option and voilá.. it worked fine!
    you can close this ticket as resolved.
    thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.