UNCLASSIFIED

Commit cfa515ee authored by Anne Demey's avatar Anne Demey
Browse files

Adjusting aria live tags for contact forms

parent 3efdc8be
...@@ -83,7 +83,7 @@ const ContactForm = ({ onClose, ...rest }) => { ...@@ -83,7 +83,7 @@ const ContactForm = ({ onClose, ...rest }) => {
</Text>{' '} </Text>{' '}
data only. data only.
</Text> </Text>
<Form onSubmit={handleSubmit}> <Form onSubmit={handleSubmit} aria-live="assertive">
<FormField <FormField
name="entry.1114584563" name="entry.1114584563"
htmlFor="text-input-name" htmlFor="text-input-name"
...@@ -186,18 +186,14 @@ const ContactForm = ({ onClose, ...rest }) => { ...@@ -186,18 +186,14 @@ const ContactForm = ({ onClose, ...rest }) => {
style={{ style={{
fontFamily: korolevFont, fontFamily: korolevFont,
}} }}
aria-live="polite"
> >
REQUESTING CONSULTATION REQUESTING CONSULTATION
</Text> </Text>
</Box> </Box>
)} )}
{success && ( {success && (
<Box <Box pad="large" align="center" justify="center" aria-live="polite">
pad="large"
align="center"
justify="center"
aria-live="assertive"
>
<Heading <Heading
level={3} level={3}
style={{ fontFamily: korolevFont }} style={{ fontFamily: korolevFont }}
......
...@@ -64,7 +64,7 @@ const FeedbackForm = ({ onClose }) => { ...@@ -64,7 +64,7 @@ const FeedbackForm = ({ onClose }) => {
<Box pad="medium" style={{ position: 'relative' }}> <Box pad="medium" style={{ position: 'relative' }}>
{!success && ( {!success && (
<Box> <Box>
<Form onSubmit={handleSubmit}> <Form onSubmit={handleSubmit} aria-live="assertive">
<FormField <FormField
name="entry.675672969" name="entry.675672969"
htmlFor="text-input-comments" htmlFor="text-input-comments"
...@@ -176,6 +176,7 @@ const FeedbackForm = ({ onClose }) => { ...@@ -176,6 +176,7 @@ const FeedbackForm = ({ onClose }) => {
style={{ style={{
fontFamily: korolevFont, fontFamily: korolevFont,
}} }}
aria-live="polite"
> >
SENDING FEEDBACK SENDING FEEDBACK
</Text> </Text>
...@@ -187,7 +188,7 @@ const FeedbackForm = ({ onClose }) => { ...@@ -187,7 +188,7 @@ const FeedbackForm = ({ onClose }) => {
align="center" align="center"
justify="center" justify="center"
gap="small" gap="small"
aria-live="assertive" aria-live="polite"
> >
<Heading <Heading
level={3} level={3}
......
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