Show form errors on textareas

This commit is contained in:
Gary Tou 2024-10-25 21:21:32 -07:00
parent 3769e5b3d7
commit c5335b1e38
No known key found for this signature in database
GPG key ID: 1587ABD3593755C3
2 changed files with 4 additions and 0 deletions

View file

@ -13,6 +13,9 @@ const formContainer = forwardRef(({ children, ...props }, ref) => {
minHeight: '100dvb',
'&.has-errors div[aria-required="true"] input:placeholder-shown': {
borderColor: 'primary'
},
'&.has-errors div[aria-required="true"] textarea:placeholder-shown': {
borderColor: 'primary'
}
}}
{...props}

View file

@ -43,6 +43,7 @@ export default function OrganizationAdultForm({ requiredFields }) {
<Textarea
name="eventPoliticalActivity"
id="eventPoliticalActivity"
placeholder="We are involved in..."
rows={3}
sx={{
resize: 'vertical'