Replies: 1 comment 2 replies
-
Hi there! You could change the accordion elements background using the class Accordion Body <div class="accordion-body bg-dark text-white">
<strong>This is accordion body.</strong> With a dark background and white text
</div> Accordion Button <h2 class="accordion-header">
<button class="accordion-button bg-primary text-white" type="button" data-bs-toggle="collapse" data-bs-target="#collapse" aria-expanded="true" aria-controls="collapse">
Accordion Button With a dark background and white text
</button>
</h2> Or using the /* Accordion Body */
$accordion-bg: #000000; // The accordion body background color
$accordion-color: #ffffff; // The accordion text color
/* Accordion Button */
$accordion-button-bg: #000000; // The accordion button background color
$accordion-button-color: #ffffff; // The accordion button text color
$accordion-button-active-bg: tint-color(#00000, 90%); // The accordion button when it is active and collapsed
$accordion-button-active-color: #ffffff; // The accordion button when it is active and collapsed |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
How do I change the background color via CSS or JS ???
accordion-flush does not work, I've tried so much :(
greetings
Beta Was this translation helpful? Give feedback.
All reactions