Skip to content

Commit 49c949f

Browse files
Merge pull request #2540 from SalesforceCommerceCloud/W-17599234-A11Y-email-modal-8
@W-17599234 - Ensure voiceover announces contents of the email confirmation modal
2 parents 95672ae + 33edb86 commit 49c949f

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

packages/template-retail-react-app/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
## v7.0.0-dev.0 (May 20, 2025)
22

33
- Improved the layout of product tiles in product scroll and product list [#2446](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2446)
4+
- [a11y] Ensure voiceover announces contents of the email confirmation modal [#2540](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2540)
45
- Updated 6 new languages [#2495](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2495)
56
- Fix Einstein event tracking for `addToCart` event [#2558](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2558)
67

8+
79
## v6.1.0 (May 22, 2025)
810

911
- Fix hreflang alternate links [#2269](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2269)

packages/template-retail-react-app/app/components/email-confirmation/index.jsx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,30 @@ const PasswordlessEmailConfirmation = ({form, submitForm, email = ''}) => {
1818
data-testid="sf-form-resend-passwordless-email"
1919
>
2020
<Stack spacing={6}>
21-
<Stack justify="center" align="center" spacing={6} role="alert">
21+
<Stack
22+
justify="center"
23+
align="center"
24+
spacing={6}
25+
role="alert"
26+
aria-live="polite"
27+
aria-labelledby="email-confirmation-title"
28+
aria-describedby="email-confirmation-desc email-confirmation-spam"
29+
tabIndex="-1"
30+
>
2231
<BrandLogo width="60px" height="auto" aria-hidden={true} />
23-
<Text align="center" fontSize="xl" fontWeight="semibold">
32+
<Text
33+
align="center"
34+
fontSize="xl"
35+
fontWeight="semibold"
36+
id="email-confirmation-title"
37+
>
2438
<FormattedMessage
2539
defaultMessage="Check Your Email"
2640
id="auth_modal.check_email.title.check_your_email"
2741
/>
2842
</Text>
2943
<Stack spacing={10}>
30-
<Text align="center" fontSize="md">
44+
<Text align="center" fontSize="md" id="email-confirmation-desc">
3145
<FormattedMessage
3246
defaultMessage="We just sent a login link to <b>{email}</b>"
3347
id="auth_modal.check_email.description.just_sent"
@@ -37,7 +51,7 @@ const PasswordlessEmailConfirmation = ({form, submitForm, email = ''}) => {
3751
}}
3852
/>
3953
</Text>
40-
<Text align="center" fontSize="sm">
54+
<Text align="center" fontSize="sm" id="email-confirmation-spam">
4155
<FormattedMessage
4256
defaultMessage="The link may take a few minutes to arrive, check your spam folder if you're having trouble finding it"
4357
id="auth_modal.check_email.description.check_spam_folder"

0 commit comments

Comments
 (0)