diff options
Diffstat (limited to 'ui/styles/textarea.css')
| -rw-r--r-- | ui/styles/textarea.css | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/styles/textarea.css b/ui/styles/textarea.css index 4dc804a..d315bcf 100644 --- a/ui/styles/textarea.css +++ b/ui/styles/textarea.css @@ -6,11 +6,9 @@ align-items: stretch; } -/* The second selector is more generally useful, but it doesn't seem to work, - * so I added in the first selector. */ -.textarea:empty:before, -[contenteditable='true']:empty:before { - content: attr(placeholder); +[data-placeholder]:empty:before { + content: attr(data-placeholder); + color: var(--light-text); pointer-events: none; display: block; /* For Firefox */ } |
