From 059f00cd77f7256cdf31e9b2b93e2edfa46bcfe1 Mon Sep 17 00:00:00 2001 From: Dsp023 Date: Tue, 10 Feb 2026 11:30:45 +0000 Subject: [PATCH 1/4] fix: improve visibility of newsletter input fields in dark mode --- components/InputBox.tsx | 6 ++++-- components/NewsletterSubscribe.tsx | 2 ++ types/components/InputBoxPropsType.ts | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/components/InputBox.tsx b/components/InputBox.tsx index 446068f963ad..3c88a178f3c5 100644 --- a/components/InputBox.tsx +++ b/components/InputBox.tsx @@ -5,7 +5,7 @@ import type { InputBoxProps } from '@/types/components/InputBoxPropsType'; /** * This component renders input box. */ -export default function InputBox({ inputType, inputName, placeholder, inputValue, setInput }: InputBoxProps) { +export default function InputBox({ inputType, inputName, placeholder, inputValue, setInput, dark = false }: InputBoxProps) { return ( setInput(e.target.value)} - className='form-input mt-2 block w-full rounded-md sm:text-sm sm:leading-5 md:mt-0 md:flex-1' + className={`form-input mt-2 block w-full rounded-md sm:text-sm sm:leading-5 md:mt-0 md:flex-1 ${ + dark ? 'border-zinc-700 bg-zinc-900 text-white placeholder-zinc-500 focus:border-indigo-500 focus:ring-indigo-500' : 'border-gray-300 text-gray-900' + }`} required data-testid={`NewsletterSubscribe-${inputType}-input`} /> diff --git a/components/NewsletterSubscribe.tsx b/components/NewsletterSubscribe.tsx index 6b709f06db77..f6cd613c272d 100644 --- a/components/NewsletterSubscribe.tsx +++ b/components/NewsletterSubscribe.tsx @@ -137,6 +137,7 @@ export default function NewsletterSubscribe({ placeholder={ready ? t('nameInput') : 'Your name'} inputValue={name} setInput={setName} + dark={dark} />