Skip to content

Commit

Permalink
docs: add inner border radius docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andipaetzold committed Oct 4, 2024
1 parent 6409e21 commit f103bd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/avatar/src/Avatar/Avatar.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export const getAvatarStyles = ({
colorVariant: ColorVariant;
}) => {
const borderRadius = variant === 'app' ? APP_BORDER_RADIUS : '100%';

// The inner border radius is smaller than the outer border radius
// See https://github.com/webuild-community/advent-of-sharing/blob/main/2022/day-06.md
const innerBorderRadius =
variant === 'app'
? APP_BORDER_RADIUS - getTotalBorderWidth(colorVariant)
Expand Down

0 comments on commit f103bd6

Please sign in to comment.