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

Accordion body color #36945

Closed
3 tasks done
vermati opened this issue Aug 12, 2022 · 1 comment
Closed
3 tasks done

Accordion body color #36945

vermati opened this issue Aug 12, 2022 · 1 comment
Labels

Comments

@vermati
Copy link

vermati commented Aug 12, 2022

Prerequisites

Describe the issue

My accordion body color suddenly shows white after upgrade BS 5.1.3 to 5.2

Looks like color and bg use the same variable in _accordion.scss ... hmm?
--#{$prefix}accordion-color: #{color-contrast($accordion-bg)};
--#{$prefix}accordion-bg: #{$accordion-bg};

Reduced test cases

Variable setup:

$body-bg: $white;
$body-color: $dark;

Fixed it by override scss:

.accordion { --#{$prefix}accordion-color: $accordion-color; }

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

Windows

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

Chrome

What version of Bootstrap are you using?

5.2.0

@vermati vermati changed the title Provide a general summary of the issue Accordion body color Aug 12, 2022
@mdo
Copy link
Member

mdo commented Sep 1, 2022

Fixed by #36921.

@mdo mdo closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants