Skip to content

Commit 1d4dcfa

Browse files
committed
fix(Text): return em color
1 parent 1ebe8fb commit 1d4dcfa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/content/Text.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,10 @@ const _Text = Object.assign(Text, {
111111
return <Text ref={ref} color="#success-text" {...props} />;
112112
}),
113113
Strong: forwardRef(function StrongText(props: CubeTextProps<'strong'>, ref) {
114-
return (
115-
<Text ref={ref} as="strong" preset="strong" color="#dark" {...props} />
116-
);
114+
return <Text ref={ref} as="strong" preset="strong" {...props} />;
117115
}),
118116
Emphasis: forwardRef(function StrongText(props: CubeTextProps<'em'>, ref) {
119-
return <Text ref={ref} as="em" preset="em" color="#dark" {...props} />;
117+
return <Text ref={ref} as="em" preset="em" {...props} />;
120118
}),
121119
Selection: forwardRef(function SelectionText(props: CubeTextProps, ref) {
122120
return <Text ref={ref} color="#dark" fill="#note.30" {...props} />;

0 commit comments

Comments
 (0)