Issue Bug Closed

#93122Default badge has no background color anymore

Oliver Bartsch 12/20/20, 14:00 updated 01/17/21, 18:02

Description

If using .badge without defining the background color with bg- (see: https://getbootstrap.com/docs/5.0/components/badge/), the badge has no background color anymore. This currently just works because for non “default” badges (e.g. badge-danger) because TYPO3 defines a custom background for these classes in Build/Sources/Sass/typo3/_element_badges.scss. So either add the “default” case here or directly switch to use the bg- classes through the core.

See e.g. the open documents badge in the toolbar:

before.png <=> after.png

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.