small fix: color block handles transparent values

This commit is contained in:
BaptisteAuscher
2026-04-08 22:45:27 +02:00
parent 765434b935
commit c3faca19fd
+1 -1
View File
@@ -131,7 +131,7 @@ export default function ColorPicker(props: ColorPickerProps) {
)}
{colorMode === "palette" && (
<Block
color={selectedColor}
color={selectedColor !== "transparent" ? selectedColor : transparentColorHSVA}
colors={colorPalette}
onChange={(color) => {
onUpdateColor(color.hex);