Skip to content

Commit 276bd5f

Browse files
jonrohanfrancineluccahussam-i-am
authored
Apply suggestions from code review
Co-authored-by: Marie Lucca <40550942+francinelucca@users.noreply.github.com> Co-authored-by: Hussam Ghazzi <hussam-i-am@github.com>
1 parent f7f982a commit 276bd5f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/react/src/AvatarStack/AvatarStack.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
/* 1. avatar size + the non-overlapping part of the second avatar */
3838

39-
/* 2. + the border widths of the first two avatars;thiscalcexplained */
39+
/* 2. + the border widths of the first two avatars */
4040
min-width: calc(
4141
var(--avatar-stack-size) + calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + var(--avatar-border-width)
4242
);
@@ -47,7 +47,7 @@
4747

4848
/* 1. avatar size + the non-overlapping part of the second avatar */
4949

50-
/* 2. + the non-overlapping part of the third avatar;thiscalcexplained */
50+
/* 2. + the non-overlapping part of the third avatar */
5151
min-width: calc(
5252
var(--avatar-stack-size) +
5353
calc(
@@ -62,7 +62,7 @@
6262

6363
/* 1. avatar size + the non-overlapping part of the second avatar */
6464

65-
/* 2. + the non-overlapping part of the third and fourth avatar;thiscalcexplained */
65+
/* 2. + the non-overlapping part of the third and fourth avatar */
6666
min-width: calc(
6767
var(--avatar-stack-size) +
6868
calc(

packages/react/src/AvatarStack/AvatarStack.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,7 @@ const AvatarStack = ({
382382
data-align-right={enabled && alignRight ? '' : undefined}
383383
data-responsive={enabled && (!size || isResponsiveValue(size)) ? '' : undefined}
384384
className={clsx(wrapperClassNames, {[classes.AvatarStack]: enabled})}
385-
// @ts-ignore - it's not allowing CSS properties here
386-
style={enabled ? (getResponsiveAvatarSizeStyles() as React.CSSProperties) : undefined}
385+
style={enabled ? getResponsiveAvatarSizeStyles() : undefined}
387386
sx={avatarStackSx}
388387
>
389388
<AvatarStackBody

0 commit comments

Comments
 (0)