From 8044500283c6b8aab2daf62b283f83a727216aab Mon Sep 17 00:00:00 2001 From: glo82145 Date: Thu, 18 Aug 2022 17:40:50 +0530 Subject: [PATCH 1/6] AC-3522::Product search result with items count is not being read by screen reader --- packages/venia-ui/lib/components/FilterSidebar/filterSidebar.js | 1 - packages/venia-ui/lib/components/Gallery/gallery.js | 1 - packages/venia-ui/lib/components/SearchPage/searchPage.js | 2 +- .../lib/components/SortedByContainer/sortedByContainer.js | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/venia-ui/lib/components/FilterSidebar/filterSidebar.js b/packages/venia-ui/lib/components/FilterSidebar/filterSidebar.js index 1ccfa63fc0..4fa266eb8a 100644 --- a/packages/venia-ui/lib/components/FilterSidebar/filterSidebar.js +++ b/packages/venia-ui/lib/components/FilterSidebar/filterSidebar.js @@ -101,7 +101,6 @@ const FilterSidebar = props => { className={classes.root} ref={filterRef} data-cy="FilterSidebar-root" - aria-live="polite" aria-busy="false" >
diff --git a/packages/venia-ui/lib/components/Gallery/gallery.js b/packages/venia-ui/lib/components/Gallery/gallery.js index 3b5bbad0ea..e512e22d34 100644 --- a/packages/venia-ui/lib/components/Gallery/gallery.js +++ b/packages/venia-ui/lib/components/Gallery/gallery.js @@ -40,7 +40,6 @@ const Gallery = props => {
{galleryItems}
diff --git a/packages/venia-ui/lib/components/SearchPage/searchPage.js b/packages/venia-ui/lib/components/SearchPage/searchPage.js index ef4201cd97..09e93b66e3 100644 --- a/packages/venia-ui/lib/components/SearchPage/searchPage.js +++ b/packages/venia-ui/lib/components/SearchPage/searchPage.js @@ -174,7 +174,7 @@ const SearchPage = props => { const itemCountHeading = data && !loading ? ( diff --git a/packages/venia-ui/lib/components/SortedByContainer/sortedByContainer.js b/packages/venia-ui/lib/components/SortedByContainer/sortedByContainer.js index 4aa4b55b62..0c3cfd9614 100644 --- a/packages/venia-ui/lib/components/SortedByContainer/sortedByContainer.js +++ b/packages/venia-ui/lib/components/SortedByContainer/sortedByContainer.js @@ -10,7 +10,7 @@ const SortedByContainer = props => { const classes = useStyle(defaultClasses, props.classes); return ( -
+
Date: Thu, 18 Aug 2022 17:54:21 +0530 Subject: [PATCH 2/6] AC-3522::Product search result with items count is not being read by screen reader --- .../__snapshots__/gallery.spec.js.snap | 2 -- .../__snapshots__/searchPage.spec.js.snap | 18 +++++++++--------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap b/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap index fe1f90a735..921eb72901 100644 --- a/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap +++ b/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap @@ -3,7 +3,6 @@ exports[`renders if \`items\` is an array of objects 1`] = `
0 items @@ -137,7 +137,7 @@ exports[`Search Page Component filter button/modal does not render if there are /> 0 items @@ -216,7 +216,7 @@ exports[`Search Page Component filter button/modal renders when there are filter /> 0 items @@ -495,7 +495,7 @@ exports[`Search Page Component search results heading renders a generic message /> 1 items @@ -605,7 +605,7 @@ exports[`Search Page Component search results heading renders a specific message /> 1 items @@ -777,7 +777,7 @@ exports[`Search Page Component sort button/container does not render if total co /> 0 items @@ -833,7 +833,7 @@ exports[`Search Page Component sort button/container renders when total count > /> 1 items @@ -936,7 +936,7 @@ exports[`Search Page Component total count renders 0 items if data.products.tota /> 0 items @@ -992,7 +992,7 @@ exports[`Search Page Component total count renders results from data 1`] = ` /> 1 items From 5cd0d5704de675b686c6f62a368255b67c58dfeb Mon Sep 17 00:00:00 2001 From: glo82145 Date: Thu, 18 Aug 2022 18:45:36 +0530 Subject: [PATCH 3/6] AC-3522::Product search result with items count is not being read by screen - added prettier --- packages/venia-ui/lib/components/Gallery/gallery.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/venia-ui/lib/components/Gallery/gallery.js b/packages/venia-ui/lib/components/Gallery/gallery.js index e512e22d34..53c11709d3 100644 --- a/packages/venia-ui/lib/components/Gallery/gallery.js +++ b/packages/venia-ui/lib/components/Gallery/gallery.js @@ -37,11 +37,7 @@ const Gallery = props => { ); return ( -
+
{galleryItems}
); From eef8fdb9ca9d280ed5b2405d4f51869216581037 Mon Sep 17 00:00:00 2001 From: glo82145 Date: Thu, 22 Sep 2022 09:25:54 +0530 Subject: [PATCH 4/6] AC-3522::Product search result with items count is not being read by screen reader --- packages/venia-ui/lib/components/Gallery/item.js | 2 -- packages/venia-ui/lib/components/ProductSort/productSort.js | 1 - packages/venia-ui/lib/components/SearchPage/searchPage.js | 5 ++--- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/venia-ui/lib/components/Gallery/item.js b/packages/venia-ui/lib/components/Gallery/item.js index 2d7d54dbde..8d3f5bbb1b 100644 --- a/packages/venia-ui/lib/components/Gallery/item.js +++ b/packages/venia-ui/lib/components/Gallery/item.js @@ -86,8 +86,6 @@ const GalleryItem = props => {
{ ref={elementRef} className={classes.root} data-cy="ProductSort-root" - aria-live="polite" aria-busy="false" >
-
+
{searchResultsHeading} {itemCountHeading}
From 4087f728d3daf326ca4c894991cb35200e69704c Mon Sep 17 00:00:00 2001 From: glo82145 Date: Tue, 27 Sep 2022 17:56:57 +0530 Subject: [PATCH 5/6] AC-3522::added failing test cases fix --- .../__snapshots__/gallery.spec.js.snap | 4 -- .../__tests__/__snapshots__/item.spec.js.snap | 2 - .../__snapshots__/productSort.spec.js.snap | 1 - .../__snapshots__/searchPage.spec.js.snap | 55 +++++++++++++------ 4 files changed, 37 insertions(+), 25 deletions(-) diff --git a/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap b/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap index 921eb72901..c77483644a 100644 --- a/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap +++ b/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap @@ -9,8 +9,6 @@ exports[`renders if \`items\` is an array of objects 1`] = ` className="items" >