Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianContiu committed Sep 27, 2024
1 parent 954e169 commit 07c7cbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/base/Page/src/PageHamburger/PageHamburger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useState } from 'react'
import { ButtonCircular } from '@toptal/picasso-button'
import { Dropdown } from '@toptal/picasso-dropdown'
import { Close24, Overview24 } from '@toptal/picasso-icons'
import { twJoin } from '@toptal/picasso-tailwind-merge'

import { useHamburgerContext } from './PageHamburgerContext'

Expand All @@ -21,7 +20,7 @@ const PageHamburger = ({ id, 'data-testid': dataTestId }: Props) => {
return (
<Dropdown
content={<div id={id} ref={hamburgerRef} />}
className={twJoin('min-[1280px]:hidden', !showSidebarMenu && 'hidden')}
className={!showSidebarMenu ? 'hidden' : 'min-[1280px]:hidden'}
classes={{
content: `!shadow-[inset_-1px_0px_0px_0px] !shadow-gray-200 max-h-[calc(100vh-var(--header-height,3.5rem))] !bg-gray-100`,
popper: 'mt-4',
Expand Down
6 changes: 3 additions & 3 deletions packages/base/Page/src/PageTopBar/__snapshots__/test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports[`Page.TopBar render with custom logo 1`] = `
class="gap-4 items-center flex"
>
<div
class="items-center min-[1280px]:hidden hidden"
class="items-center hidden"
>
<div
class="inline-flex items-center cursor-pointer"
Expand Down Expand Up @@ -120,7 +120,7 @@ exports[`Page.TopBar render with link 1`] = `
class="gap-4 items-center flex"
>
<div
class="items-center min-[1280px]:hidden hidden"
class="items-center hidden"
>
<div
class="inline-flex items-center cursor-pointer"
Expand Down Expand Up @@ -245,7 +245,7 @@ exports[`Page.TopBar renders 1`] = `
class="gap-4 items-center flex"
>
<div
class="items-center min-[1280px]:hidden hidden"
class="items-center hidden"
>
<div
class="inline-flex items-center cursor-pointer"
Expand Down

0 comments on commit 07c7cbf

Please sign in to comment.