Skip to content

Commit

Permalink
Bug fix, make the "square" rounded border match existing borders better.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan committed Oct 7, 2024
1 parent bd99a71 commit fb612ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react/src/Avatar/Avatar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
box-shadow: 0 0 0 1px var(--avatar-borderColor);

&:where([data-square]) {
border-radius: var(--borderRadius-medium);
/* stylelint-disable-next-line primer/borders */
border-radius: clamp(4px, calc(var(--avatarSize-regular) - 24px), var(--borderRadius-medium));
}

&:where([data-responsive]) {
Expand Down

0 comments on commit fb612ed

Please sign in to comment.