From 61b3e3cba8a11a53947ce0e7c8a6980fb20ef914 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 13 May 2025 20:40:23 -0400 Subject: Restore the placeholder when the editable input is emptied out after modification. This also avoids using `placeholder` on elements where it's nonstandard, like `
`s. --- ui/styles/forms.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/styles') diff --git a/ui/styles/forms.css b/ui/styles/forms.css index 1c1ae5c..a8789b1 100644 --- a/ui/styles/forms.css +++ b/ui/styles/forms.css @@ -23,7 +23,8 @@ form.form > button { margin: 0.25rem; } -[contenteditable]:empty { +[data-placeholder]:empty:before { + content: attr(data-placeholder); color: var(--light-text); } -- cgit v1.2.3