Skip to content

Commit

Permalink
[material-ui][Avatar] Fix AvatarGroup spacing (#44208)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah authored Oct 29, 2024
1 parent 16c974c commit c8bf299
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/mui-material/src/AvatarGroup/AvatarGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ const AvatarGroup = React.forwardRef(function AvatarGroup(inProps, ref) {
ownerState,
additionalProps: {
variant,
style: {
'--AvatarGroup-spacing': marginValue ? `${marginValue}px` : undefined,
...other.style,
},
},
});

Expand All @@ -144,6 +140,10 @@ const AvatarGroup = React.forwardRef(function AvatarGroup(inProps, ref) {
className={clsx(classes.root, className)}
ref={ref}
{...other}
style={{
'--AvatarGroup-spacing': marginValue ? `${marginValue}px` : undefined,
...other.style,
}}
>
{extraAvatars ? <SurplusSlot {...surplusProps}>{extraAvatarsElement}</SurplusSlot> : null}
{children
Expand Down

0 comments on commit c8bf299

Please sign in to comment.