-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Provide an ActiveStore-ish mixin #85
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
Comments
Bootstrap has always been wrong to do this. I like the mixin idea though. Sent from my iPhone
|
Something really low level like:
All it would do is take |
Wow, great work. Quickly delivered! Thanks a ton! |
I have a feeling michael is or anticipates using bootstrap somewhere ... On Thu, Jul 17, 2014 at 1:05 PM, Espen Hovlandsdal <[email protected]
|
Haha, nope :) After being forced to use Bootstrap on stuff while working for Twitter, I'm quite happy to leave it alone these days. |
This is a little silly, but I'm basically trying to wrap
<Link>
in an<li>
and have theactive
-class be applied to the li instead of the link (see https://twitter.com/ryanflorence/status/482334466375819265)I got this working by basically duplicating most of
Link
, but referencing an internal component (react-nested-router/modules/stores/ActiveStore
) seems a little hacky and is prone to break in the future.Preferably, I'd like to see some sort of mixin that you can include in your components to easily check if a route is active. An alternative would be to expose
ActiveStore
on the router if it's there to stay.Thoughts?
The text was updated successfully, but these errors were encountered: