bb-h*-color styles values incorrect

Created on 25 February 2025, about 2 months ago

Problem/Motivation

-bb-h1-color, -bb-h2-color and -bb-h3-color are not initialized with correct values.

In bootstrap.theme, line 68-70, -bb-h1-color is initialized with $h1, which contains primary|secondary|base values. Result CSS is : -bb-h1-color: primary;

Values must be taken from $colors array :

$styles = [
    ...
      "--bb-h1-color:$colors[$h1];",
      "--bb-h2-color:$colors[$h2];",
      "--bb-h3-color:$colors[$h3];",
    ];

There is another error with 'base' color : $colors['base'] is initialized with bootstrap_body_color configuration value (white or gray-800). It has to be initialized from $colors array too (line 51) :

$colors['base'] = $colors[$color];

Steps to reproduce

Proposed resolution

see patch

Remaining tasks

User interface changes

none

API changes

none

Data model changes

none

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

🇫🇷France blink38

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

Comments & Activities

Production build 0.71.5 2024