Skip to content

Commit

Permalink
PWA-3034: lighthouse mobile home page accessibility scored reduced to…
Browse files Browse the repository at this point in the history
… 98 (#4011)

- Add aria label to carousel gallery item links
- fix console warning for tabIndex
  • Loading branch information
anthoula authored Dec 1, 2022
1 parent 5afac23 commit f285ea2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ Branch.propTypes = {
text: string
}),
setCategoryId: func.isRequired,
tabIndex: func.isRequired
tabIndex: string
};
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ Leaf.propTypes = {
text: string
}),
onNavigate: func.isRequired,
tabIndex: func.isRequired,
tabIndex: string,
categoryUrlSuffix: string
};
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ Tree.propTypes = {
onNavigate: func.isRequired,
setCategoryId: func.isRequired,
updateCategories: func.isRequired,
tabIndex: func.isRequired
tabIndex: string
};
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ exports[`renders correctly with valid item data 1`] = `
className="root"
>
<a
aria-label="Test Product"
className="images"
href="/strive-shoulder-pack.html"
onClick={[Function]}
Expand Down
1 change: 1 addition & 0 deletions packages/venia-ui/lib/components/Gallery/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const GalleryItem = props => {
return (
<div data-cy="GalleryItem-root" className={classes.root} ref={itemRef}>
<Link
aria-label={name}
onClick={handleLinkClick}
to={productLink}
className={classes.images}
Expand Down

0 comments on commit f285ea2

Please sign in to comment.