From e76c3cc23170a0c1f04b697ff2710d800207fcb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 17 May 2023 00:00:42 +0200 Subject: [PATCH] Lexical: Compose event modal textarea styles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/components/ui/input/input.tsx | 2 +- app/soapbox/features/compose/editor/index.tsx | 7 ++++++- .../modals/compose-event-modal/compose-event-modal.tsx | 4 ++-- app/soapbox/locales/en.json | 1 - 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/soapbox/components/ui/input/input.tsx b/app/soapbox/components/ui/input/input.tsx index bb3f9957d..8d40aba91 100644 --- a/app/soapbox/components/ui/input/input.tsx +++ b/app/soapbox/components/ui/input/input.tsx @@ -84,7 +84,7 @@ const Input = React.forwardRef( type={revealed ? 'text' : type} ref={ref} className={clsx('text-base placeholder:text-gray-600 dark:placeholder:text-gray-600', { - 'block w-full sm:text-sm dark:ring-1 dark:ring-gray-800 focus:ring-primary-500 focus:border-primary-500 dark:focus:ring-primary-500 dark:focus:border-primary-500': + 'block w-full sm:text-sm ring-1 dark:ring-gray-800 focus:ring-primary-500 focus:border-primary-500 dark:focus:ring-primary-500 dark:focus:border-primary-500': ['normal', 'search'].includes(theme), 'text-gray-900 dark:text-gray-100': !props.disabled, 'text-gray-600': props.disabled, diff --git a/app/soapbox/features/compose/editor/index.tsx b/app/soapbox/features/compose/editor/index.tsx index a1c5ade18..fb6b5d63a 100644 --- a/app/soapbox/features/compose/editor/index.tsx +++ b/app/soapbox/features/compose/editor/index.tsx @@ -42,6 +42,7 @@ import { TO_WYSIWYG_TRANSFORMERS } from './transformers'; interface IComposeEditor { className?: string + placeholderClassName?: string composeId: string condensed?: boolean eventDiscussion?: boolean @@ -55,6 +56,7 @@ interface IComposeEditor { const ComposeEditor = React.forwardRef(({ className, + placeholderClassName, composeId, condensed, eventDiscussion, @@ -159,7 +161,10 @@ const ComposeEditor = React.forwardRef(({ } placeholder={(
{textareaPlaceholder}
diff --git a/app/soapbox/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx b/app/soapbox/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx index 253921f48..544f0e63c 100644 --- a/app/soapbox/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx +++ b/app/soapbox/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx @@ -235,11 +235,11 @@ const ComposeEventModal: React.FC = ({ onClose }) => { } - hintText={} >