fix(css): borderColor parse handling for hsl(a) color values (#9857)

This commit is contained in:
Nathan Walker
2022-04-05 10:24:09 -07:00
committed by GitHub
parent dc0cb8554e
commit da3bd2c6fb

View File

@@ -876,7 +876,7 @@ function parseBorderColor(value: string): { top: Color; right: Color; bottom: Co
bottom: undefined,
left: undefined,
};
if (value.indexOf('rgb') === 0) {
if (value.indexOf('rgb') === 0 || value.indexOf('hsl') === 0) {
result.top = result.right = result.bottom = result.left = new Color(value);
return result;