Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text-bg-primary does not respect --bs-primary color #38769

Closed
3 tasks done
Pitel opened this issue Jun 14, 2023 · 1 comment · Fixed by #38772
Closed
3 tasks done

text-bg-primary does not respect --bs-primary color #38769

Pitel opened this issue Jun 14, 2023 · 1 comment · Fixed by #38772
Labels

Comments

@Pitel
Copy link

Pitel commented Jun 14, 2023

Prerequisites

Describe the issue

When I set --bs-primary variable in my custom CSS and use text-bg-primary class, it is defined as background-color: RGBA(13,110,253,var(--bs-bg-opacity,1))!important;, basicaly ignoring the variable.

Reduced test cases

:root {
  --bs-primary: red;
  --bs-primary-rgb: 255, 0, 0;
}
<div class="text-bg-primary">This should be red, but is still blue</div>
<div class="bg-primary">This is red</div>

What operating system(s) are you seeing the problem on?

Linux

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

v5.0.3

cameronhollis pushed a commit to cameronhollis/bootstrap that referenced this issue Jun 14, 2023
cameronhollis pushed a commit to cameronhollis/bootstrap that referenced this issue Jun 14, 2023
cameronhollis pushed a commit to cameronhollis/bootstrap that referenced this issue Jun 14, 2023
@harnishdesign
Copy link

also, btn-primary and btn-outline-primary class ignoring the variable (--bs-primary).

mdo pushed a commit that referenced this issue Jul 17, 2023
* #38769 text-bg-primary now respects --bs-primary color

* Revert "#38769 text-bg-primary now respects --bs-primary color"

This reverts commit a4db90f.

* #38769 updated scss file to respect --bs-primary color with text-bg-primary class

---------

Co-authored-by: Cameron Hollis <cameronjhollis@gmail.com>
romankupchak93 pushed a commit to romankupchak93/bootstrap that referenced this issue Jan 5, 2024
* twbs#38769 text-bg-primary now respects --bs-primary color

* Revert "twbs#38769 text-bg-primary now respects --bs-primary color"

This reverts commit a4db90f.

* twbs#38769 updated scss file to respect --bs-primary color with text-bg-primary class

---------

Co-authored-by: Cameron Hollis <cameronjhollis@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: No status
Development

Successfully merging a pull request may close this issue.

3 participants