UNCLASSIFIED

Commit 4bc29ed3 authored by Kevin Calva's avatar Kevin Calva
Browse files

updated the accessibility to the forms so that the keyboard arrow navigation...

updated the accessibility to the forms so that the keyboard arrow navigation can work and removed the tabIndex from modal
parent b0560d1f
...@@ -16,7 +16,7 @@ import { PrimaryButton } from './core'; ...@@ -16,7 +16,7 @@ import { PrimaryButton } from './core';
const korolevFont = 'korolev, Helvetica Neue, Helvetica, Arial, sans-serif'; const korolevFont = 'korolev, Helvetica Neue, Helvetica, Arial, sans-serif';
const ContactForm = ({ onClose, ...rest }) => { const ContactForm = ({ onClose }) => {
const [submitting, setSubmitting] = useState(); const [submitting, setSubmitting] = useState();
const [success, setSuccess] = useState(); const [success, setSuccess] = useState();
...@@ -37,12 +37,7 @@ const ContactForm = ({ onClose, ...rest }) => { ...@@ -37,12 +37,7 @@ const ContactForm = ({ onClose, ...rest }) => {
}; };
return ( return (
<Box <Box role="dialog" aria-modal="true" a11yTitle="request a consultation">
role={rest.role}
aria-modal={rest.ariaModal}
tabIndex={rest.tabIndex}
a11yTitle={rest.a11yTitle}
>
<Box <Box
pad="medium" pad="medium"
background="black" background="black"
......
...@@ -62,7 +62,7 @@ const FeedbackFooter = () => { ...@@ -62,7 +62,7 @@ const FeedbackFooter = () => {
}, },
}} }}
> >
<Layer animation="fadeIn" aria-hidden="true"> <Layer animation="fadeIn">
<FeedbackForm onClose={handleToggleOpen} /> <FeedbackForm onClose={handleToggleOpen} />
</Layer> </Layer>
</ThemeContext.Extend> </ThemeContext.Extend>
......
...@@ -38,12 +38,7 @@ const FeedbackForm = ({ onClose }) => { ...@@ -38,12 +38,7 @@ const FeedbackForm = ({ onClose }) => {
}; };
return ( return (
<Box <Box role="dialog" aria-modal="true" a11yTitle="Send us your feedback">
role="dialog"
aria-modal="true"
tabIndex={0}
a11yTitle="Send us your feedback"
>
<Box <Box
pad="medium" pad="medium"
background="black" background="black"
......
...@@ -110,14 +110,8 @@ const Solutions = ({ data }) => { ...@@ -110,14 +110,8 @@ const Solutions = ({ data }) => {
}, },
}} }}
> >
<Layer animation="fadeIn" aria-hidden="true"> <Layer animation="fadeIn">
<ContactForm <ContactForm onClose={handleModalToggle} />
onClose={handleModalToggle}
role="dialog"
ariaModal="true"
tabIndex={0}
a11yTitle="request a consultation"
/>
</Layer> </Layer>
</ThemeContext.Extend> </ThemeContext.Extend>
)} )}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment