Skip to content

Commit

Permalink
Increase touch target
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Nov 27, 2024
1 parent 1a26b78 commit 435ed07
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/navigation/tabNavMenu/tabNavMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ type TabNavMenuProps = {
*/
export const TabNavMenu = (props: TabNavMenuProps) => {
return (
<div className="w-full flex items-center">
<div
className="w-full flex items-center cursor-pointer"
onClick={() => props.setOpen(!props.open)}
>
<IconButton
aria-label="open overview"
onClick={() => props.setOpen(!props.open)}
size="medium"
className={
'sm:hidden ml-2 transition-transform' + (props.open ? ' rotate-90' : '')
'sm:hidden ml-2 transition-transform' +
(props.open ? ' rotate-90' : '')
}
>
<KeyboardArrowIcon fontSize="inherit" />
Expand Down Expand Up @@ -57,7 +60,10 @@ export const TabNavMenu = (props: TabNavMenuProps) => {
option
)
}
onClick={() => props.setOpen(true)}
onClick={(e) => {
e.stopPropagation();
props.setOpen(true);
}}
/>
))}
</Tabs>
Expand Down

0 comments on commit 435ed07

Please sign in to comment.