Commit 7e87fdeb authored by Max Alekseenko's avatar Max Alekseenko

fix NavLink

parent 93e846e6
...@@ -54,6 +54,7 @@ const NavLink = ({ item, isCollapsed, px, className, onClick, disableActiveState ...@@ -54,6 +54,7 @@ const NavLink = ({ item, isCollapsed, px, className, onClick, disableActiveState
px={ px || { base: 2, lg: isExpanded ? 2 : '15px', xl: isCollapsed ? '15px' : 2 } } 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"
as={ 'onClick' in item ? 'button' : 'a' }
onClick={ 'onClick' in item ? item.onClick : onClick } onClick={ 'onClick' in item ? item.onClick : onClick }
_hover={{ _hover={{
[`& *:not(.${ LIGHTNING_LABEL_CLASS_NAME }, .${ LIGHTNING_LABEL_CLASS_NAME } *)`]: { [`& *:not(.${ LIGHTNING_LABEL_CLASS_NAME }, .${ LIGHTNING_LABEL_CLASS_NAME } *)`]: {
......
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