FormidableLabs / victory-docs

Documentation for Victory: A collection of composable React components for building interactive data visualizations
http://formidable.com/open-source/victory
30 stars 64 forks source link

Style sidebar #643

Closed BrittanyIRL closed 4 years ago

BrittanyIRL commented 4 years ago

Sidebar Style Update

Zeplin Link

Summary

Notes

Known To Dos

Screenshots

Basic Side Nav sidenav-update

No Results sidebar no results

Weird hierarchy on search that doesn't happen in digging through nav (see known issues)

Screen Shot 2020-01-15 at 11 42 51 AM
boygirl commented 4 years ago

Hey! I relalized there are a couple things about this sidebar that didn't get adequately captured in the requirements. Let me look at my notes from chatting with Stefan.

boygirl commented 4 years ago

Because the top nav goes away on mobile sizes, the sidebar hierarchy should be:

Getting Started
- About Victory (link to the about page)
- Quick Start Guide (existing gettting started)
- Victory Native
- FAQs
- Support (spectrum link)
- Github
Gallery
Guides
  - List of Guides
Documentatin
  - existing docs hierarchy

On desktop sizes, fewer items exist in the sidebar because they are in the top nav, so the hierarchy will look like this:

Getting Started
- Quick Start Guide (existing gettting started)
- Victory Native
- FAQs

Guides
  - List of Guides
Documentation
  - existing docs hierarchy
BrittanyIRL commented 4 years ago

Because the top nav goes away on mobile sizes, the sidebar hierarchy should be:

Getting Started
- About Victory (link to the about page)
- Quick Start Guide (existing gettting started)
- Victory Native
- FAQs
- Support (spectrum link)
- Github
Gallery
Guides
  - List of Guides
Documentatin
  - existing docs hierarchy

On desktop sizes, fewer items exist in the sidebar because they are in the top nav, so the hierarchy will look like this:

Getting Started
- Quick Start Guide (existing gettting started)
- Victory Native
- FAQs

Guides
  - List of Guides
Documentation
  - existing docs hierarchy

I thought that handling that update with this task would be nice to separate? https://www.notion.so/formidable/Victory-Docs-re-write-2956bdca5c9e4994b8e1a12e5b7add17?p=8e4500452cd94a5f9d7f6a846e56efe6

boygirl commented 4 years ago

@BrittanyIRL This is looking really good to me. The one thing that looks strange to my eye is:

Screen Shot 2020-01-15 at 1 23 18 PM

Since these all have "Props" and no other headings at that level, I think it might look nicer to drop "Props" and bump everything else up a level. But I'm also happy to ticket that out and wait for feedback from Joe

BrittanyIRL commented 4 years ago

Since these all have "Props" and no other headings at that level, I think it might look nicer to drop "Props" and bump everything else up a level.

That would also solve the weird nesting indents on search. I'll figure out how to ditch that.

BrittanyIRL commented 4 years ago

Since these all have "Props" and no other headings at that level, I think it might look nicer to drop "Props" and bump everything else up a level.

That would also solve the weird nesting indents on search. I'll figure out how to ditch that.

alrighty - this bumped up the PR size quite a bit, but I gutted the Props section of the documents so that the second heading on every doc section that only had Props is one less deep. I think this works well and we lose nothing important.

Screen Shot 2020-01-15 at 4 18 56 PM
boygirl commented 4 years ago

Approved! Thanks @BrittanyIRL