Browse Source

fix: side-nav item focus style, #711

fix/minor-fixes
Thomas Osmonson 4 years ago
committed by Thomas Osmonson
parent
commit
556c02f508
  1. 4
      src/components/side-nav.tsx

4
src/components/side-nav.tsx

@ -62,6 +62,7 @@ const PageItem = React.forwardRef(
<SmartLink <SmartLink
ref={ref} ref={ref}
css={css({ css={css({
outline: '0',
display: 'block', display: 'block',
...typeStyles, ...typeStyles,
color: isActive ? color('accent') : isTopLevel ? color('text-title') : _color, color: isActive ? color('accent') : isTopLevel ? color('text-title') : _color,
@ -70,6 +71,9 @@ const PageItem = React.forwardRef(
color: isTopLevel ? color('accent') : color('text-title'), color: isTopLevel ? color('accent') : color('text-title'),
}, },
textDecoration: 'none', textDecoration: 'none',
':focus': {
color: color('accent'),
},
})} })}
{...props} {...props}
> >

Loading…
Cancel
Save