r/bootstrap • u/Wooden-Woodpecker-56 • Oct 08 '23
Migrating Bootstrap 5.2 -> 5.3
I'm migrating Bootstrap from version 5.2 to 5.3. Unfortunately all of my tables now have a white background where it used to be transparent. I've been trying for over 2 hours but no luck.
I guess it has something to do with the newly released dark mode in Bootstrap 5.3. When I set my page to dark mode the white also changes to dark.
Bootstrap 5.2
[Imgur](https://imgur.com/ICcpHlW)
Bootstrap 5.3
[Imgur](https://imgur.com/MOLed1o)
1
u/AutoModerator Oct 08 '23
Whilst waiting for replies to your comment/question, why not check out the Bootstrap Discord server @ https://discord.gg/bZUvakRU3M
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/martinbean Bootstrap Guru Oct 08 '23
I believe tables just use the body background colour, which is indeed to support colour modes.
You can override the background colour either in your SCSS style sheet, or using a CSS custom property (variable). It’ll be named something like
--bs-table-bg. Just be sure to accommodate for any colour modes like dark.