From fb612edda871c7e9c1b534cce078dd997dac45ff Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Mon, 7 Oct 2024 17:26:13 +0000 Subject: [PATCH] Bug fix, make the "square" rounded border match existing borders better. --- packages/react/src/Avatar/Avatar.module.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react/src/Avatar/Avatar.module.css b/packages/react/src/Avatar/Avatar.module.css index f20124dedfa..9edbe1cbdce 100644 --- a/packages/react/src/Avatar/Avatar.module.css +++ b/packages/react/src/Avatar/Avatar.module.css @@ -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]) {