thomaspark / bootswatch

Themes for Bootstrap
https://bootswatch.com
MIT License
14.54k stars 3.67k forks source link

bg-primary color is incorrect #1185

Closed sushantdhiman closed 2 years ago

sushantdhiman commented 2 years ago

With Bootstrap v5, .badge-* classes were dropped in favor of .bg-* classes https://getbootstrap.com/docs/5.0/migration/#badges

After using v5 sandstone theme, I noticed incorrect badge colors are displayed. It seems for navigation bg-primary is overriden https://github.com/thomaspark/bootswatch/blob/0ae2eeba0b1a80877771bd83cbd458b6426d9ac8/dist/sandstone/_bootswatch.scss#L15

Due to this css override, where ever bg-primary is used in v5 theme, incorrect color is displayed. Examples

Card

Screenshot_20220315_135617

Badge Screenshot_20220315_135534

thomaspark commented 2 years ago

@sushantdhiman, thanks for bringing this to my attention. The bg overrides will be removed in the next release.