Skip to content

Commit

Permalink
fix(Calendar): make cells acessible with keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Jul 4, 2024
1 parent 5f90577 commit 98b3891
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/routes/Calendar/Table/Cell/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ const Cell = ({ selected, monthInfo, date, items, onClick }: Props) => {
};

return (
<div
<Button
className={classNames(styles['cell'], { [styles['active']]: active, [styles['today']]: today, [styles['past']]: past })}
key={date.day}
onClick={onCellClick}
>
<div className={styles['heading']}>
Expand All @@ -52,7 +51,7 @@ const Cell = ({ selected, monthInfo, date, items, onClick }: Props) => {
))
}
</HorizontalScroll>
</div>
</Button>
);
};

Expand Down

0 comments on commit 98b3891

Please sign in to comment.