Skip to content

Commit

Permalink
feat(accessibility): aria properties added to resolve accessibility a…
Browse files Browse the repository at this point in the history
…djustments pointed out by lighthouse
  • Loading branch information
joaocore committed Oct 9, 2023
1 parent b0d3e04 commit 1b05d5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions react/Minicart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export const Minicart: FC<MinicartProps> = ({
>
{variation === 'drawer' ? (
<DrawerMode
aria-label="Minicart"
Icon={MinicartIcon}
backdropMode={backdropMode}
itemCountMode={itemCountMode}
Expand Down
2 changes: 2 additions & 0 deletions react/components/MinicartIconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ const MinicartIconButton: React.FC<Props> = props => {

return (
<ButtonWithIcon
id="miniCartButton"
ariaLabel="Open Minicart"
icon={
<span className={`${handles.minicartIconContainer} gray relative`}>
<Icon />
Expand Down

0 comments on commit 1b05d5d

Please sign in to comment.