Skip to content

Commit

Permalink
docs: update sidebar link coloring, selection bolding
Browse files Browse the repository at this point in the history
  • Loading branch information
darthtrevino committed Nov 6, 2018
1 parent 28cb1f9 commit 4449a26
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/documentation/src/components/sidebar.tsx
Expand Up @@ -20,7 +20,9 @@ const SideBar: React.SFC<SideBarProps> = ({ groups, location }) => {
}

function renderLink({ title, location: pageLocation }: Page, key: string) {
const isSelected = pageLocation === location
const isSelected =
pageLocation === location ||
pageLocation === location.replace('/react-dnd', '')
const arrow = <span className="arrowBullet" />
const Link = isSelected ? SelectedSidebarItem : SidebarItem

Expand Down Expand Up @@ -63,11 +65,11 @@ const GroupTitle = styled.h4`

const SidebarItem = styled(GatsbyLink)`
display: block;
color: ${theme.color.body};
color: ${theme.color.accent};
`

const SelectedSidebarItem = styled(SidebarItem)`
color: ${theme.color.accent};
font-weight: bold;
position: relative;
&:after {
Expand Down

0 comments on commit 4449a26

Please sign in to comment.