Skip to content

Commit

Permalink
feat: adjust hamburger button behavior and size
Browse files Browse the repository at this point in the history
- thanks for the idea @webesp124 😎
  • Loading branch information
thenick775 committed Jan 7, 2025
1 parent 7d46032 commit c17df71
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gbajs3/src/components/navigation-menu/navigation-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ const HamburgerButton = styled(ButtonBase)<ExpandableComponentProps>`
color: ${({ theme }) => theme.pureWhite};
z-index: 200;
position: fixed;
left: ${NavigationMenuWidth - 6}px;
left: ${NavigationMenuWidth - 50}px;
top: 12px;
transition: 0.4s ease-in-out;
-webkit-transition: 0.4s ease-in-out;
cursor: pointer;
padding: 0.375rem 0.75rem;
padding: 0.05rem 0.3rem;
border-radius: 0.25rem;
border: none;
min-height: 36px;
Expand All @@ -131,7 +131,7 @@ const HamburgerButton = styled(ButtonBase)<ExpandableComponentProps>`
${({ $isExpanded = false }) =>
!$isExpanded &&
`left: -8px;
`left: 5px;
`}
&:focus {
Expand Down Expand Up @@ -176,7 +176,9 @@ export const NavigationMenu = () => {
onClick={() => setIsExpanded((prevState) => !prevState)}
aria-label="Menu Toggle"
>
<BiMenu />
<BiMenu
style={{ width: '100%', height: '100%', verticalAlign: 'middle' }}
/>
</HamburgerButton>
<NavigationMenuWrapper
data-testid="menu-wrapper"
Expand Down

0 comments on commit c17df71

Please sign in to comment.