ci(theme preview): allow gradient themes (#3400)

This commit is contained in:
Alexandr Garbuzov
2023-10-23 12:22:18 +03:00
committed by GitHub
parent edeebeb436
commit f8aa2db39d
2 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ const clampValue = (number, min, max) => {
* @returns {boolean} True if the given string is a valid gradient.
*/
const isValidGradient = (colors) => {
return isValidHexColor(colors[1]) && isValidHexColor(colors[2]);
return colors.slice(1).every((color) => isValidHexColor(color));
};
/**