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

[system] Warn for spacing when non integer value is used with theme.spacing array #23460

Merged
merged 2 commits into from
Nov 10, 2020

Conversation

mnajdova
Copy link
Member

@mnajdova mnajdova commented Nov 9, 2020

Adds warning when some spacing key is used in non integer value, but the theme.spacing is defined as array. Added tests case that illustrates the scenario.

Closes #23187

@mui-pr-bot
Copy link

mui-pr-bot commented Nov 9, 2020

Details of bundle changes

Generated by 🚫 dangerJS against 8e248f7

@oliviertassinari oliviertassinari changed the title [system] Add warning for spacing when non integer value is used with theme.spacing array [system] Warn for spacing when non integer value is used with theme.spacing array Nov 9, 2020
@oliviertassinari oliviertassinari added docs Improvements or additions to the documentation package: system Specific to @mui/system labels Nov 9, 2020
@mnajdova mnajdova merged commit 1fca268 into mui:next Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation package: system Specific to @mui/system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[system] spacing not giving warning that theme.spacing array cannot be combined with non integer value
3 participants