Skip to content

Commit

Permalink
hide title unless the viewport is 'small' or greater
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Lozano committed Oct 10, 2023
1 parent b3d0a39 commit b533400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/SubdomainNavBar/SubdomainNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function Root({
}: SubdomainNavBarProps) {
const [menuHidden, setMenuHidden] = useState(true)
const [searchVisible, setSearchVisible] = useState(false)
const {isMedium} = useWindowSize()
const {isSmall, isMedium} = useWindowSize()

const handleMobileMenuClick = () => setMenuHidden(!menuHidden)
const handleSearchVisibility = () => setSearchVisible(!searchVisible)
Expand Down Expand Up @@ -154,7 +154,7 @@ function Root({
<MarkGithubIcon fill="currentColor" size={24} />
</a>
</li>
{title && (
{title && isSmall && (
<>
<li role="separator" className={styles['SubdomainNavBar-title-separator']} aria-hidden>
/
Expand Down

0 comments on commit b533400

Please sign in to comment.