Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Add a role of figure to the review div containing hearts
Browse files Browse the repository at this point in the history
Our accessibility GH action was not happy about this.
  • Loading branch information
Adamik10 committed Aug 1, 2022
1 parent 5884a40 commit 7e022b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stories/Library/review/Review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const Review: React.FC<ReviewProps> = ({
<div className="review__meta mb-8">{meta}</div>
<div
className="mb-4"
role="figure"
aria-label={`Rating of this item is ${hearts} out of 6`}
>
{filledHeartsArray.map((value) => {
Expand Down

0 comments on commit 7e022b0

Please sign in to comment.