fade
function should be called withOpacity
#20921
Labels
duplicate
This issue or pull request already exists
fade
function should be called withOpacity
#20921
When I do
fade(primary, 0.3)
, I expect theprimary
color to fade by 30% but it actually fades by 70%. Maybe if we renamefade
towithOpacity
it will make more sense.withOpacity(primary, 0.3)
is more clear because it tells me the primary color will be only 30% opaque, which I would know is very low.We could introduce another method called
fadeBy
that will work as it reads. SofadeBy(primary, 0.3) === withOpacity(primary, 0.7)
The text was updated successfully, but these errors were encountered: