Skip to content

Commit

Permalink
update menu title font size based on whether or not it's clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
khuddite committed Nov 5, 2024
1 parent ca91dc2 commit c2a9d0b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const StyledHeader = styled.li`
color: ${({ theme }) => theme.font.color.primary};
cursor: ${({ onClick }) => (onClick ? 'pointer' : 'default')};
display: flex;
font-size: ${({ theme }) => theme.font.size.sm};
font-size: ${({ theme, onClick }) =>
onClick ? theme.font.size.sm : theme.font.size.md};
font-weight: ${({ theme }) => theme.font.weight.medium};
border-top-left-radius: ${({ theme }) => theme.border.radius.sm};
border-top-right-radius: ${({ theme }) => theme.border.radius.sm};
Expand Down

0 comments on commit c2a9d0b

Please sign in to comment.