Match placeholder behavior in native inputs

This commit is contained in:
Jason Zimdars
2025-06-11 15:09:54 -05:00
parent 235a47d11e
commit c01c83697c
@@ -12,12 +12,13 @@ lexical-editor {
}
&.lexical-editor--empty {
.lexical-editor__content:not(:focus)::before {
.lexical-editor__content::before {
content: attr(placeholder);
color: currentColor;
cursor: text;
opacity: 0.66;
pointer-events: none;
position: absolute;
white-space: pre-line;
}
}