UNCLASSIFIED

Commit 3efdc8be authored by Kevin Calva's avatar Kevin Calva
Browse files

adding the rest prop properly (spreading it to child component)

parent 4bc29ed3
...@@ -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 }) => { const ContactForm = ({ onClose, ...rest }) => {
const [submitting, setSubmitting] = useState(); const [submitting, setSubmitting] = useState();
const [success, setSuccess] = useState(); const [success, setSuccess] = useState();
...@@ -37,7 +37,7 @@ const ContactForm = ({ onClose }) => { ...@@ -37,7 +37,7 @@ const ContactForm = ({ onClose }) => {
}; };
return ( return (
<Box role="dialog" aria-modal="true" a11yTitle="request a consultation"> <Box {...rest}>
<Box <Box
pad="medium" pad="medium"
background="black" background="black"
......
...@@ -111,7 +111,12 @@ const Solutions = ({ data }) => { ...@@ -111,7 +111,12 @@ const Solutions = ({ data }) => {
}} }}
> >
<Layer animation="fadeIn"> <Layer animation="fadeIn">
<ContactForm onClose={handleModalToggle} /> <ContactForm
onClose={handleModalToggle}
role="dialog"
aria-modal="true"
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