Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

small fix: color block handles transparent values

BaptisteAuscherc3faca19fd7f
diff --git a/src/components/ui/color-picker.tsx b/src/components/ui/color-picker.tsx
index a1b78d521..d8ec2b33c 100644
--- a/src/components/ui/color-picker.tsx
+++ b/src/components/ui/color-picker.tsx
@@ -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);