-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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] Warns if the hex color contains trailing space #44538
Conversation
Netlify deploy previewhttps://deploy-preview-44538--material-ui.netlify.app/ Bundle size report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@siriwatknp what if we .trim()
the input instead?
packages/mui-system/src/colorManipulator/colorManipulator.test.js
Outdated
Show resolved
Hide resolved
I don't think so. The point of this PR is to warn if the input is not correct. I am reluctant to process the input at this point. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks much better like this 👍
Co-authored-by: Aarón García Hervás <aaron.garcia.hervas@gmail.com> Signed-off-by: Siriwat K <siriwatkunaporn@gmail.com>
@aarongarciah applied you suggestion. |
closes #44504
Test added.