Skip to content

Commit 1ebe8fb

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/content/Text.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ const _Text = Object.assign(Text, {
115115
<Text ref={ref} as="strong" preset="strong" color="#dark" {...props} />
116116
);
117117
}),
118+
Emphasis: forwardRef(function StrongText(props: CubeTextProps<'em'>, ref) {
119+
return <Text ref={ref} as="em" preset="em" color="#dark" {...props} />;
120+
}),
118121
Selection: forwardRef(function SelectionText(props: CubeTextProps, ref) {
119122
return <Text ref={ref} color="#dark" fill="#note.30" {...props} />;
120123
}),

0 commit comments

Comments
 (0)