You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if this has been mentioned before, but nothing quite like it in the existing issues list.
It would be handy if we could set a custom active class through the options when initializing the router.
Something similar to
{ "active-class" : "is-active"}
Currently it defaults to "active" but for many css libraries out there the active class for links has in built highlight for class names other than "active" (I use Bulma mainly which uses the "is-active" class).
I am happy to provide a pull request if you like, as I think it would be a simple case of adding another export to the spa_router for "activeClass" and then using this within the Navigate component.
The text was updated successfully, but these errors were encountered:
Apologies if this has been mentioned before, but nothing quite like it in the existing issues list.
It would be handy if we could set a custom active class through the options when initializing the router.
Something similar to
{ "active-class" : "is-active"}
Currently it defaults to "active" but for many css libraries out there the active class for links has in built highlight for class names other than "active" (I use Bulma mainly which uses the "is-active" class).
I am happy to provide a pull request if you like, as I think it would be a simple case of adding another export to the spa_router for "activeClass" and then using this within the Navigate component.
The text was updated successfully, but these errors were encountered: