Skip to content

Commit

Permalink
fix: 563 - to add aria-hidden to menu icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Quiddlee committed Dec 14, 2024
1 parent 1ea946c commit 6f80458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/widgets/school-menu/ui/school-item/school-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const SchoolItem = ({
alt=""
width={32}
height={32}
aria-hidden="true"
data-testid="school-item-icon"
/>}
<div className={cx('description-wrapper')}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ describe('SchoolMenu', () => {
const images = screen.getAllByTestId('school-item-icon');

expect(images).toHaveLength(6);
images.forEach((img) => expect(img).toHaveAttribute('aria-hidden', 'true'));
});

it('renders correct link description when date is passed', () => {
Expand Down

0 comments on commit 6f80458

Please sign in to comment.