diff --git a/frontend/src/component/common/Badge/Badge.tsx b/frontend/src/component/common/Badge/Badge.tsx index 066f8f6b46..b59a00dbed 100644 --- a/frontend/src/component/common/Badge/Badge.tsx +++ b/frontend/src/component/common/Badge/Badge.tsx @@ -35,7 +35,7 @@ interface IBadgeIconProps { iconRight?: boolean; } -const StyledBadge = styled('div')( +const StyledBadge = styled('span')( ({ theme, color = 'neutral', icon }) => ({ display: 'inline-flex', alignItems: 'center', @@ -58,7 +58,7 @@ const StyledBadge = styled('div')( }), ); -const StyledBadgeIcon = styled('div')( +const StyledBadgeIcon = styled('span')( ({ theme, color = 'neutral', iconRight = false }) => ({ display: 'flex', color: @@ -88,7 +88,7 @@ const BadgeIcon = (color: Color, icon: ReactElement, iconRight = false) => ( export const Badge: FC = forwardRef( ( { - as = 'div', + as = 'span', color = 'neutral', icon, iconRight,