Skip to content

Commit

Permalink
chore: fix a11y lint issues (#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
amje authored Jun 17, 2024
1 parent 496ca55 commit c3816e6
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 79 deletions.
14 changes: 10 additions & 4 deletions src/components/ArrowToggle/__stories__/ArrowToggle.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,15 @@ export const Interactive: StoryFn<ArrowToggleProps> = (args) => {
const direction = directions[directionIndex % directions.length];

return (
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
<span onClick={() => setDirectionIndex(directionIndex + 1)} style={{cursor: 'pointer'}}>
<ArrowToggle {...args} size={32} direction={direction} /> <h3>{direction}</h3>
</span>
<div>
<button
onClick={() => setDirectionIndex(directionIndex + 1)}
style={{cursor: 'pointer'}}
aria-label="Arrow"
>
<ArrowToggle {...args} size={32} direction={direction} />
</button>
<h3>{direction}</h3>
</div>
);
};
Loading

0 comments on commit c3816e6

Please sign in to comment.