Skip to content

Commit d7449e2

Browse files
(Text): restrict category only classname to title
1 parent 7b1ef61 commit d7449e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/Text.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const Text: FC<TextProps> = ({
2929
}) => {
3030
const textClassNames = classnames(
3131
type && category ? `slds-text-${category}_${type}` : undefined,
32-
category && !type ? `slds-text-${category}` : undefined,
32+
category === 'title' && !type ? `slds-text-${category}` : undefined,
3333
align ? `slds-text-align_${align}` : undefined,
3434
{
3535
'slds-truncate': truncate,

0 commit comments

Comments
 (0)