-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding active style to side nav links #281
Conversation
Co-authored-by: emplums <[email protected]>
This pull request is automatically deployed with Now. |
pages/doc-components/Header.js
Outdated
className="text-white" | ||
href="/components" | ||
px={4} | ||
fontWeigt={router.pathname === '/components' ? 'bold' : null} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we're missing the "h" in fontWeight
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahhhhh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, nice work!
Gives the side nav active links a different color/style so that when they're active you can tell what page they're on.
*Note there's typography properties that I'm using that need to be added to the
Link.js
component.Merge checklist