BUGS-NYU / bugs-nyu.github.io-old

The old website for the BUGS organization hosted through Github Pages
https://bugs-nyu.github.io/bugs-nyu.github.io-old/
MIT License
12 stars 44 forks source link

NavBar Text is not highlighted upon refresh #208

Closed Kn99HN closed 3 years ago

Kn99HN commented 3 years ago
Screen Shot 2021-03-06 at 8 47 06 PM
Kn99HN commented 3 years ago

For some reason I think #206 fixes this after removing the footer???

Nvm still a bug

esilverm commented 3 years ago

This is implemented with Gatsby's built-in Link component's activeClassName prop so it is likely a bug within Gatsby

See: https://www.gatsbyjs.com/docs/reference/built-in-components/gatsby-link/#add-custom-styles-for-the-currently-active-link

esilverm commented 3 years ago

Solution seems to be adding the prop partiallyActive={true} to the gatsby link tags

yuchenliu15 commented 3 years ago

hmm it works fine for me

how to reproduce this bug?

Kn99HN commented 3 years ago

This happens on Safari and Firefox for me. Are you using Chrome?

yuchenliu15 commented 3 years ago

nah I use firefox, interesting...

Kn99HN commented 3 years ago

Huh, interesting....