-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@W-14337462@ - Fix: Improper nesting of elements #1541
Conversation
…ommerceCloud/pwa-kit into ju/accessibility-form-fields
…erceCloud/pwa-kit into fix/accessibility-nesting
<title>{category?.pageTitle}</title> | ||
<meta name="description" content={category?.pageDescription} /> | ||
<title>{category?.pageTitle ?? searchQuery}</title> | ||
<meta name="description" content={category?.pageDescription ?? searchQuery} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SEO lighthouse check was failing since PLP pages with search queries (non category) had no title/description in header
"header.button.assistive_msg.my_cart": { | ||
"defaultMessage": "My cart" | ||
"header.button.assistive_msg.my_cart_with_num_items": { | ||
"defaultMessage": "My cart, number of items: {numItems}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added translations for en-GB
to clear Missing Translation
warnings in console when developing
@@ -14,7 +14,7 @@ | |||
"build-translations": "npm run extract-default-translations && npm run compile-translations && npm run compile-translations:pseudo", | |||
"compile-translations": "node ./scripts/translations/compile-folder.js translations", | |||
"compile-translations:pseudo": "node ./scripts/translations/compile-pseudo.js translations/en-US.json", | |||
"extract-default-translations": "node ./scripts/translations/extract-default-messages.js en-US", | |||
"extract-default-translations": "node ./scripts/translations/extract-default-messages.js en-US && node ./scripts/translations/extract-default-messages.js en-GB", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we use both en-US and en-GB for English, adding one more extraction command for en-GB can avoid the issue of missing translation for en-GB
@alexvuong Do you mean allowing focus for the name/price? If so, I believe the current behavior should be fine. The product tile itself is highlighted when you focus over it, and the name/price get's read out with the screen reader. I think if we allow focus over the price/name we introduce redundancy in the readout |
packages/template-retail-react-app/app/components/swatch-group/index.jsx
Show resolved
Hide resolved
packages/template-retail-react-app/app/components/product-tile/index.jsx
Outdated
Show resolved
Hide resolved
@joeluong-sfcc I think the blue highlight should be visible and wrap around the element that is currently read from the voice over. In the screenshot, there was only a small dot which does not look right. Look familiar to this issue: #1536 |
…erceCloud/pwa-kit into fix/accessibility-nesting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
This PR fixes improper nesting structure in the product tile where screen readers were unable to properly read the content of a product tile due to the nesting of the wishlist button.
Before (
Wishlist
in readout)After (
Wishlist
no longer in readout)This PR also:
en-GB
locale to dismissmissing translation
warnings in consoleTypes of Changes
Changes
en-GB
locale to dismissmissing translation
warnings in consoleHow to Test-Drive This PR
Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization