Skip to content

Commit c589d73

Browse files
committed
Fixed active link
1 parent a556ab8 commit c589d73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/pages/_template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Template extends React.Component {
1414
return (
1515
<div>
1616
<Menu width={200} right>
17-
<span><Link to="/playground/">Try it out</Link></span>
17+
<span><Link to="/playground/" className={path.indexOf('/playground')==0?"active":null}>Try it out</Link></span>
1818
<span><Link to="/docs/quickstart/" className={path.indexOf('/docs')==0?"active":null}>Docs</Link></span>
1919
<span><Link to="/community/">Community</Link></span>
2020
<a href="https://github.com/graphql-python/graphene/">Github</a>
@@ -26,7 +26,7 @@ class Template extends React.Component {
2626
Graphene
2727
</Link>
2828
<nav className="header-nav">
29-
<Link to="/playground/">Try it out</Link>
29+
<Link to="/playground/" className={path.indexOf('/playground')==0?"active":null}>Try it out</Link>
3030
<Link to="/docs/quickstart/" className={path.indexOf('/docs')==0?"active":null}>Docs</Link>
3131
<Link to="/community/">Community</Link>
3232
<a href="https://github.com/graphql-python/graphene/">Github</a>

0 commit comments

Comments
 (0)