-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AvatarGroup] spacing
prop does nothing
#44172
Comments
Looks like it's just a typo in the CSS variable: diff --git a/packages/mui-material/src/AvatarGroup/AvatarGroup.js b/packages/mui-material/src/AvatarGroup/AvatarGroup.js
index 7d07c1868d..bdb69662b3 100644
--- a/packages/mui-material/src/AvatarGroup/AvatarGroup.js
+++ b/packages/mui-material/src/AvatarGroup/AvatarGroup.js
@@ -131,7 +131,7 @@ const AvatarGroup = React.forwardRef(function AvatarGroup(inProps, ref) {
additionalProps: {
variant,
style: {
- '--AvatarRoot-spacing': marginValue ? `${marginValue}px` : undefined,
+ '--AvatarGroup-spacing': marginValue ? `${marginValue}px` : undefined,
...other.style,
},
}, @hon2a Are you interested in creating a PR? |
spacing
prop does nothing
Sorry, I don't feel comfortable making a PR without full understanding of the context and I don't have the bandwidth for that right now. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @hon2a How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
The root problem: the The bug was introduced while migrating the AvatarGroup styles to support static extraction: #41485 |
@aarongarciah thanks for the save 🙏 |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @hon2a How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/cocky-forest-clhrvg
Steps
Attempt to use
spacing
inAvatarGroup
, provided enum (small
/medium
) or number.Current behavior
Spacing stays the same regardless of the provided value.
Expected behavior
Provided spacing should get applied.
Context
No response
Your environment
npx @mui/envinfo
Tested in Chrome.
Search keywords: AvatarGroup spacing
The text was updated successfully, but these errors were encountered: