*/
.badge {
display: inline-block;
- padding: 2px 4px;
+ padding: 4px;
background-color: var(--barBorderColor);
border-radius: 3px;
font-size: var(--smallFontSize);
- font-weight: normal;
+ font-weight: 600;
color: var(--baseFontColor);
text-transform: uppercase;
white-space: nowrap;
- line-height: 1;
+ line-height: 8px;
}
.badge:empty {
display: none;
background-color: var(--alertBackgroundError);
color: var(--alertTextError);
}
-
-/* TODO: remove after SC fork */
-.badge-icon {
- padding-left: calc(var(--gridSize) / 2);
-}
-.badge-icon svg {
- height: calc(var(--smallControlHeight) - 2px);
-}
const badge = (
<div
className={classNames('badge', className, {
- 'badge-info': Boolean(icon),
- 'badge-icon': Boolean(icon)
+ 'badge-info': Boolean(icon)
})}>
{icon}
{translate('visibility', visibility)}