mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: text editor not visible in dark mode (#2920)
This commit is contained in:
parent
f0f5430313
commit
6c81a32d62
4 changed files with 17 additions and 4 deletions
|
@ -89,9 +89,6 @@ export const textWysiwyg = ({
|
|||
editable.dataset.type = "wysiwyg";
|
||||
// prevent line wrapping on Safari
|
||||
editable.wrap = "off";
|
||||
editable.className = `excalidraw ${
|
||||
appState.appearance === "dark" ? "Appearance_dark" : ""
|
||||
}`;
|
||||
|
||||
Object.assign(editable.style, {
|
||||
position: "fixed",
|
||||
|
@ -107,6 +104,8 @@ export const textWysiwyg = ({
|
|||
overflow: "hidden",
|
||||
// prevent line wrapping (`whitespace: nowrap` doesn't work on FF)
|
||||
whiteSpace: "pre",
|
||||
// must be specified because in dark mode canvas creates a stacking context
|
||||
zIndex: "var(--zIndex-wysiwyg)",
|
||||
});
|
||||
|
||||
updateWysiwygStyle();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue