Update menu title font size based on whether or not it's clickable (#8354)
Fixes #8350 1. Summary https://www.figma.com/design/xt8O9mFeLl46C5InWwoMrN/Twenty?node-id=36424-125120&node-type=instance&t=psxuagFLo1Cu26Vz-0 Based on Figma, the menu header should have `base/medium` instead of `small/medium` when it's not clickable or dropdown. However, for dropdowns, we should keep it as `small/medium`. Menu items should stay as `base/regular`. 2. Solution Utilized `onClick` prop to decide the font size of the menu header. That way, Dropdowns stay as `base/small` while non-clickable headers are updated to `base/medium` 3. Screenshots ***please check out font size and weight for each case*** header:  menu item:  dropdown: 
This commit is contained in:
@ -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};
|
||||
|
||||
Reference in New Issue
Block a user