Problem/Motivation

Bootstrap 5 sets `.navbar-brand { color: var(--bs-navbar-brand-color) } `(defaults to the emphasis color, `#000`). This overrides the header color that non-link brand text like `.site-slogan` used to inherit under Bootstrap 4, so the slogan renders black.

Proposed resolution

Default the navbar brand color to the header color in `sass/variables/_bs_base.scss`:

  $navbar-light-brand-color:        var(--bsb-color, inherit) !default;
  $navbar-light-brand-hover-color:  var(--bsb-color, inherit) !default;
  $navbar-dark-brand-color:         var(--bsb-color, inherit) !default;
  $navbar-dark-brand-hover-color:   var(--bsb-color, inherit) !default;

Issue fork bs_base-3607220

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

pivica created an issue. See original summary.

pivica’s picture

Status: Active » Needs review

  • pivica committed 0873a483 on 2.0.x
    fix: #3607220 Navbar brand color overrides the inherited header color (...
pivica’s picture

Merged.

pivica’s picture

Status: Needs review » Fixed

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.

Status: Fixed » Closed (fixed)

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