mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: remove background from wysiwyg when editing arrow label (#6033)
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
This commit is contained in:
parent
af3b93c410
commit
5fcf6a4845
3 changed files with 22 additions and 3 deletions
|
@ -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)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue