Skip to content

Commit

Permalink
feat(ui): Improved appearance of new text fields in error state.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotcourant committed Jun 19, 2023
1 parent 83f4e3b commit 5f81bbd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui/components/MTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function MTextField(props: MTextFieldProps = MTextFieldPropsDefau
if (!props.error) return null;

return (
<p className="text-sm font-medium text-red-500 mt-2">
<p className="text-xs font-medium text-red-500 mt-0.5">
{ props.error }
</p>
);
Expand All @@ -75,11 +75,14 @@ export default function MTextField(props: MTextFieldProps = MTextFieldPropsDefau
'ring-gray-200': props.disabled,
'uppercase': props.uppercase,
},
{
'focus:ring-purple-400': !props.error,
'focus:ring-red-400': props.error,
},
'block',
'border-0',
'focus:ring-2',
'focus:ring-inset',
'focus:ring-purple-400',
'placeholder:text-gray-400',
'px-3',
'py-1.5',
Expand Down

0 comments on commit 5f81bbd

Please sign in to comment.