diff --git a/superset-frontend/src/components/Badge/index.tsx b/superset-frontend/src/components/Badge/index.tsx index f33d9808e4d..01c03f3fcf8 100644 --- a/superset-frontend/src/components/Badge/index.tsx +++ b/superset-frontend/src/components/Badge/index.tsx @@ -28,8 +28,8 @@ export interface BadgeProps extends AntdBadgeProps { const Badge = styled( ( // eslint-disable-next-line @typescript-eslint/no-unused-vars - { textColor, ...props }: BadgeProps, - ) => , + { textColor, color, text, ...props }: BadgeProps, + ) => , )` & > sup { padding: 0 ${({ theme }) => theme.gridUnit * 2}px; diff --git a/superset-frontend/src/components/DropdownContainer/index.tsx b/superset-frontend/src/components/DropdownContainer/index.tsx index 38efa285e69..c90372973ef 100644 --- a/superset-frontend/src/components/DropdownContainer/index.tsx +++ b/superset-frontend/src/components/DropdownContainer/index.tsx @@ -376,10 +376,14 @@ const DropdownContainer = forwardRef( {dropdownTriggerText} 0 + ? theme.colors.primary.base + : theme.colors.grayscale.light1 + } + showZero css={css` - margin-left: ${dropdownTriggerCount ?? overflowingCount - ? `${theme.gridUnit * 2}px` - : '0'}; + margin-left: ${theme.gridUnit * 2}px; `} />