Skip to content

Conversation

@danbaragan
Copy link

  1. react will only interpret activeClassName to apply class="what-you-provided" if found on Link components
  2. bootstrap will only look for class="active" on li elements, hence the overrides.css
  3. in order to prevent wrong highlighting one can provide onlyActiveOnIndex or use IndexLink; second seemed cleaner

TODO: there are still problems with active highlighting when using back browser button...

1. react will only interpret activeClassName to apply class="what-you-provided" if found on Link components
2. bootstrap will only look for class="active" on li elements, hence the overrides.css
3. in order to prevent wrong highlighting one can provide onlyActiveOnIndex or use IndexLink; second seemed cleaner

TODO: there are still problems with active highlighting when using back browser button...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant