mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
Merge pull request #1733 from Synchro/master
Remove alpha from contrast calc
This commit is contained in:
@@ -206,7 +206,7 @@ tree.functions = {
|
||||
} else {
|
||||
threshold = number(threshold);
|
||||
}
|
||||
if ((color.luma() * color.alpha) < threshold) {
|
||||
if (color.luma() < threshold) {
|
||||
return light;
|
||||
} else {
|
||||
return dark;
|
||||
|
||||
Reference in New Issue
Block a user