Commit 4bde57e9 authored by tom goriunov's avatar tom goriunov Committed by GitHub

Update navigation menu styles (#2094)

Fixes #2028
parent 0653e131
...@@ -31,7 +31,7 @@ const NavLinkGroup = ({ item, onClick, isExpanded }: Props) => { ...@@ -31,7 +31,7 @@ const NavLinkGroup = ({ item, onClick, isExpanded }: Props) => {
<Box <Box
{ ...styleProps.itemProps } { ...styleProps.itemProps }
w="100%" w="100%"
px={ 3 } px={ 2 }
aria-label={ `${ item.text } link group` } aria-label={ `${ item.text } link group` }
> >
<Flex justifyContent="space-between" width="100%" alignItems="center" pr={ 1 }> <Flex justifyContent="space-between" width="100%" alignItems="center" pr={ 1 }>
......
...@@ -97,7 +97,7 @@ const NavigationMobile = ({ onNavLinkClick, isMarketplaceAppPage }: Props) => { ...@@ -97,7 +97,7 @@ const NavigationMobile = ({ onNavLinkClick, isMarketplaceAppPage }: Props) => {
style={{ x: subX }} style={{ x: subX }}
key="sub" key="sub"
> >
<Flex alignItems="center" px={ 3 } py={ 2.5 } w="100%" h="50px" onClick={ onGroupItemClose } mb={ 1 }> <Flex alignItems="center" px={ 2 } py={ 2.5 } w="100%" h="50px" onClick={ onGroupItemClose } mb={ 1 }>
<IconSvg name="arrows/east-mini" boxSize={ 6 } mr={ 2 } color={ iconColor }/> <IconSvg name="arrows/east-mini" boxSize={ 6 } mr={ 2 } color={ iconColor }/>
<Text variant="secondary" fontSize="sm">{ mainNavItems[openedGroupIndex].text }</Text> <Text variant="secondary" fontSize="sm">{ mainNavItems[openedGroupIndex].text }</Text>
</Flex> </Flex>
......
...@@ -46,7 +46,7 @@ const NavLink = ({ item, isCollapsed, px, className, onClick, disableActiveState ...@@ -46,7 +46,7 @@ const NavLink = ({ item, isCollapsed, px, className, onClick, disableActiveState
w={{ base: '100%', lg: isExpanded ? '100%' : '60px', xl: isCollapsed ? '60px' : '100%' }} w={{ base: '100%', lg: isExpanded ? '100%' : '60px', xl: isCollapsed ? '60px' : '100%' }}
display="flex" display="flex"
position="relative" position="relative"
px={ px || { base: 3, lg: isExpanded ? 3 : '15px', xl: isCollapsed ? '15px' : 3 } } px={ px || { base: 2, lg: isExpanded ? 2 : '15px', xl: isCollapsed ? '15px' : 2 } }
aria-label={ `${ item.text } link` } aria-label={ `${ item.text } link` }
whiteSpace="nowrap" whiteSpace="nowrap"
onClick={ onClick } onClick={ onClick }
......
...@@ -45,7 +45,7 @@ const NavLinkGroup = ({ item, isCollapsed }: Props) => { ...@@ -45,7 +45,7 @@ const NavLinkGroup = ({ item, isCollapsed }: Props) => {
<Link <Link
{ ...styleProps.itemProps } { ...styleProps.itemProps }
w={{ lg: isExpanded ? '180px' : '60px', xl: isCollapsed ? '60px' : '180px' }} w={{ lg: isExpanded ? '180px' : '60px', xl: isCollapsed ? '60px' : '180px' }}
pl={{ lg: isExpanded ? 3 : '15px', xl: isCollapsed ? '15px' : 3 }} pl={{ lg: isExpanded ? 2 : '15px', xl: isCollapsed ? '15px' : 2 }}
pr={{ lg: isExpanded ? 0 : '15px', xl: isCollapsed ? '15px' : 0 }} pr={{ lg: isExpanded ? 0 : '15px', xl: isCollapsed ? '15px' : 0 }}
aria-label={ `${ item.text } link group` } aria-label={ `${ item.text } link group` }
position="relative" position="relative"
......
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