Skip to content
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

[material-ui] defaultProps ignored when using theme scoping #44334

Closed
bromanazzi opened this issue Nov 6, 2024 · 1 comment · Fixed by #44340
Closed

[material-ui] defaultProps ignored when using theme scoping #44334

bromanazzi opened this issue Nov 6, 2024 · 1 comment · Fixed by #44340
Assignees
Labels
customization: theme Centered around the theming features package: material-ui Specific to @mui/material regression A bug, but worse

Comments

@bromanazzi
Copy link

bromanazzi commented Nov 6, 2024

Steps to reproduce

Link to live example: https://codesandbox.io/p/sandbox/x7mc5q

Current behavior

Button renders as size medium by default

Expected behavior

Button should render as size small, since no size was specified

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: theme defaultProps scoping

@bromanazzi bromanazzi added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Nov 6, 2024
@zannager zannager added the customization: theme Centered around the theming features label Nov 7, 2024
@siriwatknp siriwatknp added regression A bug, but worse package: material-ui Specific to @mui/material and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 7, 2024
Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@bromanazzi 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customization: theme Centered around the theming features package: material-ui Specific to @mui/material regression A bug, but worse
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants