We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aec1b75 commit 4c33affCopy full SHA for 4c33aff
packages/page-primitives/src/badge.tsx
@@ -46,8 +46,11 @@ export const Badge: React.FC<BadgeProps> = ({
46
style={{
47
...style,
48
backgroundColor:
49
- style.backgroundColor || theme?.colors?.secondary,
50
- color: style.color || theme?.colors?.buttonText,
+ (style as React.CSSProperties).backgroundColor ||
+ theme?.colors?.secondary,
51
+ color:
52
+ (style as React.CSSProperties).color ||
53
+ theme?.colors?.buttonText,
54
borderColor: theme?.colors?.border,
55
}}
56
{...props}
0 commit comments