Statamic-SASS icon indicating copy to clipboard operation
Statamic-SASS copied to clipboard

Bug in SassColour.php

Open DanCollins2010 opened this issue 11 years ago • 0 comments

Line 861 "$s = $l > 0.5 ? $d / (2 - $max - $min) : $d / ($max + $min);" must be put in a conditional that checks if ($max+$min) > 0, else an Exception will be thrown when trying to convert the color black to HSL.

DanCollins2010 avatar Dec 10 '14 01:12 DanCollins2010