Merge branch 'fix-input-text-color' into 'develop'

Use white text on dark inputs

See merge request soapbox-pub/soapbox-fe!1485
This commit is contained in:
Justin 2022-06-01 19:22:34 +00:00
commit 2d9e813fc3

View file

@ -64,8 +64,8 @@ const Input = React.forwardRef<HTMLInputElement, IInput>(
type={revealed ? 'text' : type}
ref={ref}
className={classNames({
'dark:bg-slate-800 block w-full sm:text-sm border-gray-300 dark:border-gray-600 rounded-md focus:ring-indigo-500 focus:border-indigo-500':
true,
'dark:bg-slate-800 dark:text-white block w-full sm:text-sm border-gray-300 dark:border-gray-600 rounded-md focus:ring-indigo-500 focus:border-indigo-500':
true,
'pr-7': isPassword,
'text-red-600 border-red-600': hasError,
'pl-8': typeof icon !== 'undefined',