Primary buttons are the same color as other buttons

Created on 5 April 2024, 3 months ago
Updated 24 June 2024, 4 days ago

Problem/Motivation

The input.html.twig template correctly converts stock button--danger buttons to the bootstrap equivalent. But it ignores all of the buttons marked button--primary which should be assigned the primary color.
Then it assigns the primary color to all of the remaining buttons.

This results in suboptimal results where some buttons are unstyled, action buttons are not highlighted with a different color because every styled button is the same color.

Proposed resolution

Adjust the template to assign the secondary color to every button except danger and primary buttons. This will also make it easier for themers to adjust which button colors they want to use as they can just copy and modify the template. And it will retain the core button style guidelines which highlights the action buttons to make a UI with several buttons in it easier to grok at a glance.

✨ Feature request
Status

RTBC

Version

3.0

Component

Code

Created by

🇺🇸United States rhovland

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024