Skip to content
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

[Docs] Nest component routes, and set initiallyOpen for Nav List item… #3025

Closed
wants to merge 1 commit into from
Closed

[Docs] Nest component routes, and set initiallyOpen for Nav List item… #3025

wants to merge 1 commit into from

Conversation

mbrookes
Copy link
Member

…s based on current route

Resolves #3023.

@@ -92,39 +92,54 @@ const AppRoutes = (
<Route path="auto-complete" component={AutoCompletePage} />
<Route path="avatar" component={AvatarPage} />
<Route path="badge" component={BadgePage} />
<Redirect from="buttons" to="/components/buttons/flat-button" />
<Route path="buttons">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep the url flat for the doc section?
I don't think that it's a good idea to nest it, as we don't nest our source folder.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like it's for the initiallyOpen. I would rather fix this at the List components level.

@mbrookes
Copy link
Member Author

@oliviertassinari I did ask if there were any objections. 😒

@mbrookes mbrookes closed this Jan 24, 2016
@oliviertassinari
Copy link
Member

Yes, indeed. Sorry I have over looked the implications. You don't necessarily have to close the PR. People may argue the opposite.

@mbrookes
Copy link
Member Author

Well, I do agree that fixing it in the list HOC would be preferable, but having the routes matching the menu nesting seemed a simple alternative for now. I can see your point though - it would just have been nice to have it sooner. 😁

@mbrookes mbrookes deleted the docs-sidenav branch January 26, 2016 01:55
@zannager zannager added the docs Improvements or additions to the documentation label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Docs] Open appropriate nested SelectableList when visiting a docs path directly.
3 participants