From c911932d7728e4cf2cf29095c46b91e5185d1fcb Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Wed, 20 Aug 2025 15:04:19 -0500 Subject: [PATCH 1/2] Disable submit button when Lexical is empty --- app/assets/stylesheets/actiontext-lexical.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/stylesheets/actiontext-lexical.css b/app/assets/stylesheets/actiontext-lexical.css index c84a3d954..5f471eb1d 100644 --- a/app/assets/stylesheets/actiontext-lexical.css +++ b/app/assets/stylesheets/actiontext-lexical.css @@ -31,6 +31,12 @@ position: absolute; white-space: pre-line; } + + /* Disable the sublit button when Lexical is empty */ + + .comment__submit { + opacity: 0.5; + pointer-events: none; + } } } From 42ab3a4bd6913baab0b896cc5fc1d6aa61f78dc3 Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Wed, 20 Aug 2025 15:04:47 -0500 Subject: [PATCH 2/2] Fix typo --- app/assets/stylesheets/actiontext-lexical.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/stylesheets/actiontext-lexical.css b/app/assets/stylesheets/actiontext-lexical.css index 5f471eb1d..c6ac46217 100644 --- a/app/assets/stylesheets/actiontext-lexical.css +++ b/app/assets/stylesheets/actiontext-lexical.css @@ -32,7 +32,7 @@ white-space: pre-line; } - /* Disable the sublit button when Lexical is empty */ + /* Disable the submit button when Lexical is empty */ + .comment__submit { opacity: 0.5; pointer-events: none;