card, modal, offcanvas and toast can't handle .text-white around
See original GitHub issuePrerequisites
- I have searched for duplicate or closed issues
- I have validated any HTML to avoid common problems
- I have read the contributing guidelines
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:
- Created a year ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.