From b0560d1f8d840f51a1535051b3f1745911851bbc Mon Sep 17 00:00:00 2001 From: Kevin Calva Date: Fri, 9 Apr 2021 15:43:55 -0500 Subject: [PATCH 1/9] updated the accessibilty features for the site feedback form and engagement request form --- src/components/ContactForm.js | 26 +++++++++++++++++++++----- src/components/FeedbackFooter.js | 2 +- src/components/FeedbackForm.js | 29 ++++++++++++++++++++++++----- src/pages/solutions.js | 10 ++++++++-- 4 files changed, 54 insertions(+), 13 deletions(-) diff --git a/src/components/ContactForm.js b/src/components/ContactForm.js index 6c85a2b..25d50de 100644 --- a/src/components/ContactForm.js +++ b/src/components/ContactForm.js @@ -16,7 +16,7 @@ import { PrimaryButton } from './core'; const korolevFont = 'korolev, Helvetica Neue, Helvetica, Arial, sans-serif'; -const ContactForm = ({ onClose }) => { +const ContactForm = ({ onClose, ...rest }) => { const [submitting, setSubmitting] = useState(); const [success, setSuccess] = useState(); @@ -37,7 +37,12 @@ const ContactForm = ({ onClose }) => { }; return ( - + { > REQUEST A CONSULTATION - {onClose && } + {onClose && ( + + )} { @@ -186,7 +197,12 @@ const ContactForm = ({ onClose }) => { )} {success && ( - + { }, }} > - + diff --git a/src/components/FeedbackForm.js b/src/components/FeedbackForm.js index e1741d1..2053df7 100644 --- a/src/components/FeedbackForm.js +++ b/src/components/FeedbackForm.js @@ -38,7 +38,12 @@ const FeedbackForm = ({ onClose }) => { }; return ( - + { > SEND US YOUR FEEDBACK - + {!success && ( @@ -136,7 +145,7 @@ const FeedbackForm = ({ onClose }) => { @@ -178,7 +187,13 @@ const FeedbackForm = ({ onClose }) => { )} {success && ( - + { FEEDBACK SENT Thanks for sharing with us. - + )} diff --git a/src/pages/solutions.js b/src/pages/solutions.js index 356e6c2..9b0808c 100644 --- a/src/pages/solutions.js +++ b/src/pages/solutions.js @@ -110,8 +110,14 @@ const Solutions = ({ data }) => { }, }} > - - + )} -- GitLab From 4bc29ed3a60930f43c785eec93f3259ea287a479 Mon Sep 17 00:00:00 2001 From: Kevin Calva Date: Mon, 12 Apr 2021 12:34:24 -0500 Subject: [PATCH 2/9] updated the accessibility to the forms so that the keyboard arrow navigation can work and removed the tabIndex from modal --- src/components/ContactForm.js | 9 ++------- src/components/FeedbackFooter.js | 2 +- src/components/FeedbackForm.js | 7 +------ src/pages/solutions.js | 10 ++-------- 4 files changed, 6 insertions(+), 22 deletions(-) diff --git a/src/components/ContactForm.js b/src/components/ContactForm.js index 25d50de..c9416b9 100644 --- a/src/components/ContactForm.js +++ b/src/components/ContactForm.js @@ -16,7 +16,7 @@ import { PrimaryButton } from './core'; const korolevFont = 'korolev, Helvetica Neue, Helvetica, Arial, sans-serif'; -const ContactForm = ({ onClose, ...rest }) => { +const ContactForm = ({ onClose }) => { const [submitting, setSubmitting] = useState(); const [success, setSuccess] = useState(); @@ -37,12 +37,7 @@ const ContactForm = ({ onClose, ...rest }) => { }; return ( - + { }, }} > -