From c5335b1e386cd0155aea0f26c2f17284c1da7bd9 Mon Sep 17 00:00:00 2001 From: Gary Tou Date: Fri, 25 Oct 2024 21:21:32 -0700 Subject: [PATCH] Show form errors on `textarea`s --- components/fiscal-sponsorship/apply/form-container.js | 3 +++ components/fiscal-sponsorship/apply/org-adult-form.js | 1 + 2 files changed, 4 insertions(+) diff --git a/components/fiscal-sponsorship/apply/form-container.js b/components/fiscal-sponsorship/apply/form-container.js index d544335a..aa8707f4 100644 --- a/components/fiscal-sponsorship/apply/form-container.js +++ b/components/fiscal-sponsorship/apply/form-container.js @@ -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} diff --git a/components/fiscal-sponsorship/apply/org-adult-form.js b/components/fiscal-sponsorship/apply/org-adult-form.js index 5aa98f69..382c26e8 100644 --- a/components/fiscal-sponsorship/apply/org-adult-form.js +++ b/components/fiscal-sponsorship/apply/org-adult-form.js @@ -43,6 +43,7 @@ export default function OrganizationAdultForm({ requiredFields }) {