Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

feat(docs): make categories collapsible #1611

Merged
merged 32 commits into from
Jul 15, 2019

Conversation

lucivpav
Copy link
Contributor

@lucivpav lucivpav commented Jul 10, 2019

This PR changes the docs in a way that the sidebar categories can be collapsed. Previously this was not possible, as the sidebar component did not have a tree structure.

collaps1

The sidebar items can also be accessed using keyboard only.

collaps2

@vercel
Copy link

vercel bot commented Jul 10, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://stardust-react-git-fork-lucivpav-docs-collapsible-categories.stardust-ui.now.sh

@vercel vercel bot temporarily deployed to staging July 10, 2019 14:59 Inactive
@lucivpav lucivpav changed the title Make categories collapsible Make docs categories collapsible Jul 10, 2019
@lucivpav lucivpav changed the title Make docs categories collapsible docs: make categories collapsible Jul 10, 2019
@codecov
Copy link

codecov bot commented Jul 10, 2019

Codecov Report

Merging #1611 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1611   +/-   ##
=======================================
  Coverage   71.46%   71.46%           
=======================================
  Files         845      845           
  Lines        6945     6945           
  Branches     1981     1981           
=======================================
  Hits         4963     4963           
  Misses       1976     1976           
  Partials        6        6
Impacted Files Coverage Δ
packages/react/src/components/Tree/TreeItem.tsx 75% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c194ef...42e1e34. Read the comment docs.

CHANGELOG.md Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to staging July 15, 2019 12:51 Inactive
Co-Authored-By: Marija Najdova <mnajdova@gmail.com>
@@ -121,8 +121,6 @@ const webpackConfig: any = {
src: paths.packageSrc('react'),
docs: paths.base('docs'),
},
// Allows to avoid multiple inclusions of the same module
modules: [paths.base('node_modules')],
Copy link
Member

Choose a reason for hiding this comment

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

remix-run/react-router#6201 (comment)

The reason is here, we don't need this anymore due updates in Webpack config

@@ -32,7 +32,7 @@ class App extends React.Component<any, ThemeContextData> {
})}
>
<PerfDataProvider>
<Router />
<Routes />
Copy link
Member

Choose a reason for hiding this comment

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

Renamed to avoid confusion in React Tree

},
},
})}
>
<Sidebar />
<Sidebar width={sidebarWidth} treeSelectionStyle={treeSectionStyle} />
Copy link
Member

Choose a reason for hiding this comment

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

Don't like this style passdown, but don't have better ideas

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants