Skip to content

Commit

Permalink
Update CardHeader.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanyoung committed Jan 26, 2024
1 parent 19c95df commit daf89dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Card/components/CardHeader/CardHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { FC, ReactNode } from 'react';
import { Box, BoxProps } from '../../../Box/Box';
import { Heading } from '../../../Heading/Heading';

export interface CardHeaderProps extends BoxProps {
/**
Expand Down Expand Up @@ -32,7 +31,7 @@ export const CardHeader: FC<CardHeaderProps> = ({
}) => {
const renderTitle = () => (
typeof title === 'string'
? <Heading size="lg" as="h4">{title}</Heading>
? <Box fontSize="lg" fontWeight="bold" as="h4">{title}</Box>
: title
);

Expand Down

0 comments on commit daf89dc

Please sign in to comment.