You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alpha value returned by decomposeColor is null when the color string passed has whitespace before/after value. Due to this, darken (and probably other functions) return NaN when calculating proper values.
Expected behavior
Trim whitespace, or give a warning in the console.
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: decomposeColor darken NaN
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Steps:
Current behavior
Alpha value returned by
decomposeColor
isnull
when the color string passed has whitespace before/after value. Due to this,darken
(and probably other functions) returnNaN
when calculating proper values.Expected behavior
Trim whitespace, or give a warning in the console.
Context
No response
Your environment
npx @mui/envinfo
Search keywords: decomposeColor darken NaN
The text was updated successfully, but these errors were encountered: