Problem/Motivation

Drupal provides styling for submit buttons, to make secondary buttons, at least, like this:

$form['actions']['submit_secondary'] = [
  '#type' => 'submit',
  '#value' => t('Secondary action'),
  '#button_type' => 'secondary', 
];

But in the FlexiStyle Bootstrap theme, the buttons are always primary.

This is hardcoded in the theme https://git.drupalcode.org/project/flexistyle_bootstrap/-/blob/d441bc569...
<button{{ attributes.addClass('btn', 'btn-primary') }}>{{ attributes.value }}</button>{{ children }}
Please fix this and make the style follow the Drupal button type.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

murz created an issue. See original summary.

murz’s picture

Issue summary: View changes
priyansu18’s picture

working on it.

priyansu18’s picture

Status: Active » Needs review
murz’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me, thank you!

  • priyansu18 committed 8ff6d552 on 1.3.x
    Issue #3562610: Add the dynamic color styles at the buttons
    
anoopsingh92’s picture

Status: Reviewed & tested by the community » Fixed

Thank you!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

priyansu18’s picture

Thanks everyone.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.