-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Doc] Update menu implementation on left nav #2421
Conversation
Note: I also change the |
👍 Nice work. @oliviertassinari Please review and don't mind the code-style (const, extra empty line, etc...) I'm working on them. merge this if it's semantically alright. |
onItemTouchTap={this._handleItemTouchTap} | ||
openDirection="bottom-right" | ||
style={styles.secondaryNav} | ||
valueLink={{ |
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.
React plan to deprecate valueLink
.
Could we not use this property?
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.
I didn't know valueLink
was being deprecated...I'm not a huge fan of it anyway :P
Was just implementing it the easiest way I saw possible from the menu docs, I'll find another way.
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.
Have a look at facebook/react#5032. This will help
@newoga Thanks for working on this. That's an excellent idea! |
Hey @oliviertassinari, I just pushed a new commit with your fixes/suggestions. I think the best way to implement the active route on page load is to pass the router's I originally implemented this by looking at Let me know what you think! |
@newoga This works great, thanks! I just had another idea. I don't know if you are going to like it. Still, I can merge this PR, since it's already far better. |
@oliviertassinari Should we discuss this with others in a separate issue? I mean the categorization is a big decision, this PR handles something else imo. 😬 |
@subjectix Alright. |
Haha, that's irony for you! I feel like I've been switching from List to Menu to List a lot lately 😝 That being said, I do agree that using the LeftNav would be preferable. Initially I was just trying to do the least amount of work to remove the old Menu just so we can drop it as a dependency. I'll squash and can create a new issue for (Don't feel bad about suggesting a different approach, I certainly don't mind iterating and definitely prefer getting things right the first time. Worst case scenario I'll flip my table and no one will have to know 😄) |
23eeac5
to
ae3acff
Compare
[Doc] Update menu implementation on left nav
@newoga Thanks |
@newoga Thanks a lot 👍 👍 🎉 |
@@ -142,7 +142,7 @@ const Master = React.createClass({ | |||
height: 64, | |||
top: 0, | |||
right: 0, | |||
zIndex: 6, | |||
zIndex: 15, |
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.
Why changing this?
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.
I see, I have another issue with zIndex now.
I'm gonna fix it.
This pull request is in support of deprecating the old menu components. (related to #2395, #2307)
It replaces the menu implementation on the left nav on the docs site with the new one.
As a result, it also fixes #1514