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.
Comments
Comment #2
murzComment #3
priyansu18 commentedworking on it.
Comment #5
priyansu18 commentedComment #6
murzLooks good to me, thank you!
Comment #8
anoopsingh92Thank you!
Comment #10
priyansu18 commentedThanks everyone.