Skip to content

Commit

Permalink
update font size (#2566)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Thompson <[email protected]>
  • Loading branch information
bruugey and TheSonOfThomp authored Dec 3, 2024
1 parent 04bb887 commit e057802
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/grumpy-grapes-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@leafygreen-ui/avatar': minor
---

Font is now bolded when the size is `'xlarge'`
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export const getAvatarTextStyles = ({
return css`
user-select: none;
font-size: ${fontSize}px;
font-weight: ${isSingleCharacter ? 'bold' : 'normal'};
font-weight: ${isSingleCharacter || size === AvatarSize.XLarge
? 'bold'
: 'normal'};
`;
};

Expand Down

0 comments on commit e057802

Please sign in to comment.