diff --git a/apps/signup-form/assets/icons/spinner.svg b/apps/signup-form/assets/icons/spinner.svg index 4616576d1b..1f5607a13d 100644 --- a/apps/signup-form/assets/icons/spinner.svg +++ b/apps/signup-form/assets/icons/spinner.svg @@ -1,4 +1,4 @@ - + @@ -14,4 +14,4 @@ @keyframes nc-loop-dots-4-anim{0%,100%{opacity:.4;transform:scale(.75)}50%{opacity:1;transform:scale(1)}} - \ No newline at end of file + diff --git a/apps/signup-form/src/components/pages/FormView.tsx b/apps/signup-form/src/components/pages/FormView.tsx index 8f4b5f2ad8..200a3475a7 100644 --- a/apps/signup-form/src/components/pages/FormView.tsx +++ b/apps/signup-form/src/components/pages/FormView.tsx @@ -56,6 +56,7 @@ const Form: React.FC = ({isMinimal, loading, success, error, buttonCo onSubmit({email}); }; + // The complicated transitions are here so that we animate visibility: hidden (step-start/step-end), which is required for screen readers to know what is visible (they ignore opacity: 0) return ( <>
@@ -75,9 +76,9 @@ const Form: React.FC = ({isMinimal, loading, success, error, buttonCo style={{backgroundColor: buttonColor, color: buttonTextColor}} type='submit' > - {t('Subscribe')} - {isMinimal && {t('Email sent')}} - + {t('Subscribe')} + {isMinimal && {t('Email sent')}} +