Skip to content

Commit

Permalink
feat(@clayui/core): update component highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed Mar 11, 2024
1 parent b6fd6a9 commit 0993f12
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/clay-core/src/typography/TextHighlight.tsx
Expand Up @@ -33,7 +33,14 @@ export function TextHighlight({children, match}: Props) {
const value = item.replace(/\+/g, '');

return value ? (
<Text key={index}>{value}</Text>
<Text
className={
!item.includes('}') ? 'mark' : undefined
}
key={index}
>
{value}
</Text>
) : null;
})
.filter(Boolean)
Expand Down

0 comments on commit 0993f12

Please sign in to comment.