Commit a6549dd3 authored by Mike Grabowski's avatar Mike Grabowski Committed by GitHub

fix: add outline to bottom navigation (#5415)

* fix: add outline to bottom navigation

* Update index.tsx
parent 9dabacef
......@@ -9,6 +9,7 @@ import { Row } from 'nft/components/Flex'
import { UniIcon } from 'nft/components/icons'
import { ReactNode } from 'react'
import { NavLink, NavLinkProps, useLocation } from 'react-router-dom'
import styled from 'styled-components/macro'
import { Bag } from './Bag'
import { ChainSelector } from './ChainSelector'
......@@ -16,6 +17,23 @@ import { MenuDropdown } from './MenuDropdown'
import { SearchBar } from './SearchBar'
import * as styles from './style.css'
const MobileBottomBar = styled.div`
position: fixed;
display: flex;
bottom: 0;
right: 0;
left: 0;
justify-content: space-between;
padding: 4px 8px;
height: 56px;
background: ${({ theme }) => theme.backgroundSurface};
border-top: 1px solid ${({ theme }) => theme.backgroundOutline};
@media screen and (min-width: ${({ theme }) => theme.breakpoint.md}px) {
display: none;
}
`
interface MenuItemProps {
href: string
id?: NavLinkProps['id']
......@@ -114,12 +132,12 @@ const Navbar = () => {
</Box>
</Box>
</nav>
<Box className={styles.mobileBottomBar}>
<MobileBottomBar>
<PageTabs />
<Box marginY="4">
<MenuDropdown />
</Box>
</Box>
</MobileBottomBar>
</>
)
}
......
......@@ -97,18 +97,3 @@ export const activeMenuItem = style([
background: 'backgroundFloating',
}),
])
export const mobileBottomBar = style([
sprinkles({
position: 'fixed',
display: { sm: 'flex', lg: 'none' },
bottom: '0',
right: '0',
left: '0',
justifyContent: 'space-between',
paddingY: '4',
paddingX: '8',
height: '56',
background: 'backgroundSurface',
}),
])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment