From 3dec0a452079e1a1a3e64290e16b881a47a22876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20S=C3=A1nchez?= Date: Fri, 26 Apr 2024 08:11:52 +0200 Subject: [PATCH] fix blend modes translation (#71) --- .changeset/thick-wombats-float.md | 5 +++++ ui-src/translators/translateUiBlendMode.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/thick-wombats-float.md diff --git a/.changeset/thick-wombats-float.md b/.changeset/thick-wombats-float.md new file mode 100644 index 00000000..efed63c6 --- /dev/null +++ b/.changeset/thick-wombats-float.md @@ -0,0 +1,5 @@ +--- +"penpot-exporter": patch +--- + +Fix blend mode 'color' translation diff --git a/ui-src/translators/translateUiBlendMode.ts b/ui-src/translators/translateUiBlendMode.ts index 0d45cf06..6c7939fc 100644 --- a/ui-src/translators/translateUiBlendMode.ts +++ b/ui-src/translators/translateUiBlendMode.ts @@ -1,4 +1,5 @@ import { + BLEND_MODE_COLOR, BLEND_MODE_COLOR_BURN, BLEND_MODE_COLOR_DODGE, BLEND_MODE_DARKEN, @@ -50,7 +51,7 @@ export const translateUiBlendMode = (blendMode?: BlendMode): BlendMode | undefin case 'saturation': return BLEND_MODE_SATURATION; case 'color': - return BLEND_MODE_COLOR_BURN; + return BLEND_MODE_COLOR; case 'luminosity': return BLEND_MODE_LUMINOSITY; default: