Skip to content
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

AC-3522::Product search result with items count is not being read by … #3935

Merged
merged 8 commits into from
Sep 28, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ const FilterSidebar = props => {
className={classes.root}
ref={filterRef}
data-cy="FilterSidebar-root"
aria-live="polite"
aria-busy="false"
>
<div className={classes.body}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
exports[`renders if \`items\` is an array of objects 1`] = `
<div
aria-busy="false"
aria-live="polite"
className="root"
>
<div
Expand Down Expand Up @@ -208,7 +207,6 @@ exports[`renders if \`items\` is an array of objects 1`] = `
exports[`renders if \`items\` is an empty array 1`] = `
<div
aria-busy="false"
aria-live="polite"
className="root"
>
<div
Expand Down
7 changes: 1 addition & 6 deletions packages/venia-ui/lib/components/Gallery/gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@ const Gallery = props => {
);

return (
<div
data-cy="Gallery-root"
className={classes.root}
aria-live="polite"
aria-busy="false"
>
<div data-cy="Gallery-root" className={classes.root} aria-busy="false">
<div className={classes.items}>{galleryItems}</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exports[`Search Page Component error view does not render when data is present 1
/>
<span
aria-busy="true"
aria-live="polite"
aria-live="assertive"
className="totalPages"
>
0 items
Expand Down Expand Up @@ -137,7 +137,7 @@ exports[`Search Page Component filter button/modal does not render if there are
/>
<span
aria-busy="true"
aria-live="polite"
aria-live="assertive"
className="totalPages"
>
0 items
Expand Down Expand Up @@ -216,7 +216,7 @@ exports[`Search Page Component filter button/modal renders when there are filter
/>
<span
aria-busy="true"
aria-live="polite"
aria-live="assertive"
className="totalPages"
>
0 items
Expand Down Expand Up @@ -495,7 +495,7 @@ exports[`Search Page Component search results heading renders a generic message
/>
<span
aria-busy="true"
aria-live="polite"
aria-live="assertive"
className="totalPages"
>
1 items
Expand Down Expand Up @@ -605,7 +605,7 @@ exports[`Search Page Component search results heading renders a specific message
/>
<span
aria-busy="true"
aria-live="polite"
aria-live="assertive"
className="totalPages"
>
1 items
Expand Down Expand Up @@ -777,7 +777,7 @@ exports[`Search Page Component sort button/container does not render if total co
/>
<span
aria-busy="true"
aria-live="polite"
aria-live="assertive"
className="totalPages"
>
0 items
Expand Down Expand Up @@ -833,7 +833,7 @@ exports[`Search Page Component sort button/container renders when total count >
/>
<span
aria-busy="true"
aria-live="polite"
aria-live="assertive"
className="totalPages"
>
1 items
Expand Down Expand Up @@ -936,7 +936,7 @@ exports[`Search Page Component total count renders 0 items if data.products.tota
/>
<span
aria-busy="true"
aria-live="polite"
aria-live="assertive"
className="totalPages"
>
0 items
Expand Down Expand Up @@ -992,7 +992,7 @@ exports[`Search Page Component total count renders results from data 1`] = `
/>
<span
aria-busy="true"
aria-live="polite"
aria-live="assertive"
className="totalPages"
>
1 items
Expand Down
2 changes: 1 addition & 1 deletion packages/venia-ui/lib/components/SearchPage/searchPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const SearchPage = props => {
const itemCountHeading =
data && !loading ? (
<span
aria-live="polite"
aria-live="assertive"
aria-busy="true"
className={classes.totalPages}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const SortedByContainer = props => {
const classes = useStyle(defaultClasses, props.classes);

return (
<div className={classes.root} aria-live="polite" aria-busy="true">
<div className={classes.root} aria-busy="true">
<FormattedMessage
id={'searchPage.sortContainer'}
defaultMessage={'Items sorted by '}
Expand Down