Closed BrittanyIRL closed 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.
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
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
@BrittanyIRL This is looking really good to me. The one thing that looks strange to my eye is:
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
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.
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.
Approved! Thanks @BrittanyIRL
Sidebar Style Update
Zeplin Link
Summary
Link
toNavLink
to use activeClass in updated react router, also usingexact
so that the active class can work for intro sections as well for consistency.Fragment
Notes
Known To Dos
Screenshots
Basic Side Nav
No Results
Weird hierarchy on search that doesn't happen in digging through nav (see known issues)