Skip to content

Commit

Permalink
Merge pull request #1733 from Synchro/master
Browse files Browse the repository at this point in the history
Remove alpha from contrast calc
  • Loading branch information
lukeapage committed Dec 18, 2013
2 parents b5d8c95 + 21e1e91 commit 7a5e432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/less/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7a5e432

Please sign in to comment.