Align default button styles more closely on Drupal core

Created on 17 September 2024, 4 months ago

Problem/Motivation

Bootstrap5 assigns the class "btn-primary" to every input that has class "button" and does not have the class "btn" or "btn-danger". So basically most buttons from Drupal core get displayed as primary buttons. In contrast Drupal core does usually assign only one button as primary for each form and the other buttons while not explicitly stated are displayed as secondary buttons.

Bootstrap should imho align to this defaults in using button styles.

Additionally Bootstrap5 does explicitly exclude the add more buttons from getting a default button style, resulting in a kind of "camouflage" style for the add more button. I would propose to let the add more button get the default button style too (which will be secondary button with this issues changes then).

Steps to reproduce

Use bootstrap5 for node editing and compare the button styles with for example using claro for node editing.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

4.0

Component

Code

Created by

🇩🇪Germany stefan.korn Jossgrund

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024