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
The documentation states that the second parameter to the modularScale can be either a number or string, but when I try to provide a unitless number it throws an error.
polished version: 3.2.0
Mixin/Helper/Shorthand you were using and how you were using it:
modularScale(1,1.5)
What you are seeing:
Error: Invalid value passed as base to modularScale, expected number or em/rem string but got 1.5.`
What you expected to see:
1.9994999999999998 (as a plain number without units)
The documentation states that the second parameter to the
modularScale
can be either anumber
orstring
, but when I try to provide a unitless number it throws an error.polished
version: 3.2.0Mixin/Helper/Shorthand you were using and how you were using it:
What you are seeing:
What you expected to see:
1.9994999999999998 (as a plain number without units)
Reproduction:
https://codesandbox.io/s/133lqrox73 (look at console output)
Thanks.
The text was updated successfully, but these errors were encountered: