diff --git a/src/element/textWysiwyg.tsx b/src/element/textWysiwyg.tsx index 9cb96138..d525221a 100644 --- a/src/element/textWysiwyg.tsx +++ b/src/element/textWysiwyg.tsx @@ -325,8 +325,6 @@ export const textWysiwyg = ({ whiteSpace = "pre-wrap"; wordBreak = "break-word"; } - const isContainerArrow = isArrowElement(getContainerElement(element)); - const background = isContainerArrow ? "#fff" : "transparent"; Object.assign(editable.style, { position: "absolute", display: "inline-block", @@ -337,7 +335,7 @@ export const textWysiwyg = ({ border: 0, outline: 0, resize: "none", - background, + background: "transparent", overflow: "hidden", // must be specified because in dark mode canvas creates a stacking context zIndex: "var(--zIndex-wysiwyg)", diff --git a/src/tests/__snapshots__/linearElementEditor.test.tsx.snap b/src/tests/__snapshots__/linearElementEditor.test.tsx.snap new file mode 100644 index 00000000..afc175cb --- /dev/null +++ b/src/tests/__snapshots__/linearElementEditor.test.tsx.snap @@ -0,0 +1,12 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Test Linear Elements Test bound text element should match styles for text editor 1`] = ` +