]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Fix badge theme variable fallback order (#41920)
authorMark Otto <markd.otto@gmail.com>
Thu, 11 Dec 2025 23:46:27 +0000 (15:46 -0800)
committerMark Otto <markdotto@gmail.com>
Fri, 9 Jan 2026 04:08:32 +0000 (20:08 -0800)
commit397eeca443942b68285e990a5ee98f7c2a11257b
tree3564fa0ac568d24efaac312cf4286876c8e7dec8
parent3acb4623dc6d72aedf223eaccfbdd32e4d6f9df2
Fix badge theme variable fallback order (#41920)

Move --bs-theme-* variable usage from CSS variable definitions to property
declarations. This ensures the fallback works correctly:
- color: var(--bs-theme-contrast, var(--bs-badge-color))
- background-color: var(--bs-theme-bg, var(--bs-badge-bg))

Also fixes .badge-subtle variant to use same pattern.
scss/_badge.scss
site/src/content/docs/components/badge.mdx