From c1e54e684275b48bb77133eea8ee9010469ffea8 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Wed, 22 Jun 2022 01:53:10 +0200 Subject: [PATCH] Fix field description (#1923) * Remove most of the original description placeholder implementation * Move description showing logic to RichTextInput - there is no need to propagate it to ContentEditable * Remove the @html from field-description This actually worked - however I removed it in case we'd rather offer markdown support or something else in the future. * Do not remove placeholder already on focus - Other editors do not do it either * Hide via hidden attribute instead of unmounting * Do not pass content to ContentEditable * Sort imports * Change placeholder text color (dae) In day mode, slightly-grey is almost indistinguishable from black (at least on the monitor I'm using here) --- ts/editable/ContentEditable.svelte | 24 +------- .../rich-text-input/RichTextInput.svelte | 55 +++++++++++++++++-- .../rich-text-input/RichTextStyles.svelte | 16 ++---- 3 files changed, 57 insertions(+), 38 deletions(-) diff --git a/ts/editable/ContentEditable.svelte b/ts/editable/ContentEditable.svelte index 2fee28aaf..645c5d3bc 100644 --- a/ts/editable/ContentEditable.svelte +++ b/ts/editable/ContentEditable.svelte @@ -7,11 +7,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/ts/editor/rich-text-input/RichTextStyles.svelte b/ts/editor/rich-text-input/RichTextStyles.svelte index 9679a3939..1010befe7 100644 --- a/ts/editor/rich-text-input/RichTextStyles.svelte +++ b/ts/editor/rich-text-input/RichTextStyles.svelte @@ -3,10 +3,6 @@ Copyright: Ankitects Pty Ltd and contributors License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -->