Skip to content

Commit

Permalink
Merge pull request #4102 from magento/PWA-3080
Browse files Browse the repository at this point in the history
PWA-3080:: When you click on Thumbnail, Add to cart works
  • Loading branch information
glo82145 authored May 16, 2023
2 parents 9f524e8 + 35e41e2 commit 8c07d6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ exports[`renders the Carousel component correctly w/ sorted images 1`] = `
aria-label="Current Image"
className="rootSelected"
onClick={[Function]}
type="button"
>
<div
className="root container"
Expand Down Expand Up @@ -294,6 +295,7 @@ exports[`renders the Carousel component correctly w/ sorted images 1`] = `
aria-label="Next Image"
className="root"
onClick={[Function]}
type="button"
>
<div
className="root container"
Expand Down Expand Up @@ -344,6 +346,7 @@ exports[`renders the Carousel component correctly w/ sorted images 1`] = `
aria-label="Next Image"
className="root"
onClick={[Function]}
type="button"
>
<div
className="root container"
Expand Down Expand Up @@ -394,6 +397,7 @@ exports[`renders the Carousel component correctly w/ sorted images 1`] = `
aria-label="Next Image"
className="root"
onClick={[Function]}
type="button"
>
<div
className="root container"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exports[`renders root class if not the active Thumbnail 1`] = `
aria-label="Next Image"
className="root"
onClick={[Function]}
type="button"
>
<div
className="root container"
Expand Down Expand Up @@ -58,6 +59,7 @@ exports[`renders the Thumbnail component correctly 1`] = `
aria-label="Current Image"
className="rootSelected"
onClick={[Function]}
type="button"
>
<div
className="root container"
Expand Down Expand Up @@ -111,6 +113,7 @@ exports[`renders transparent placeholder when no file name is provided 1`] = `
aria-label="Current Image"
className="rootSelected"
onClick={[Function]}
type="button"
>
<div
className="root container"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const Thumbnail = props => {

return (
<button
type="button"
className={isActive ? classes.rootSelected : classes.root}
onClick={handleClick}
aria-label={selectedItem}
Expand Down

0 comments on commit 8c07d6b

Please sign in to comment.