question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

card, modal, offcanvas and toast can't handle .text-white around

See original GitHub issue

Prerequisites

Describe the issue

When I place a card, modal, offcanvas or toast (that’s all as far as I’ve figured out) inside a .text-white container, the text turns white and since the background is also white, it’s not readable, you can check the fiddle with an example.

Since the accordions work by .accordion-item { color: var(--bs-accordion-color); }, maybe this could be added to the other 4 components as well?

Reduced test cases

https://jsfiddle.net/expb59g7/

(quick n dirty fixes: https://jsfiddle.net/dkqryw9n/)

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

macOS

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

Chrome

What version of Bootstrap are you using?

v.5.2.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mdocommented, Sep 1, 2022

That’s good criteria for making the decision, I’ll think on that more. I think focusing first on colors makes the most sense.

And in regards to the accordion color, that’s been tackled in #36921.

0reactions
mdocommented, Oct 31, 2022

This is something that will likely be addressed in the color mode work that will make it easier to more surgically change light/dark on components. We already have null colors on all the mentioned components as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Offcanvas · Bootstrap v5.0
Build hidden sidebars into your project for navigation, shopping carts, and more with a few classes and our JavaScript plugin.
Read more >
Toast is hidden under offcanvas · Issue #34028 · twbs/bootstrap
If you have a offcanvas open and show a toast then the toast gets hidden under the offcanvas. I expected to the toast...
Read more >
How to display Bootstrap Offcanvas inside a Modal
Is it possible to display Bootstrap Offcanvas inside a Modal? Offcanvas uses position fixed and is intended as a top level page component....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found