Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Desktop Sidebar: Active Section  #1639

Open
alexrcabral opened this issue Jan 15, 2021 · 1 comment
Open

Desktop Sidebar: Active Section  #1639

alexrcabral opened this issue Jan 15, 2021 · 1 comment

Comments

@alexrcabral
Copy link

alexrcabral commented Jan 15, 2021

Mockup of v2 Mathshare sidebar on desktop. This shows a profile portrait with the initial A. Underneath is the name Alex C in bold, followed by Teacher, and Signout. The main portion of the sidebar is shown beneath. These options read My Solution Sets, My Created Sets, Example Sets, About Mathshare, Help Center, and Accessibility. My Created Sets is currently active, which is represented by bold, darker font.

Appearance 

When a particular section on the page is active, the corresponding menu item in the sidebar of the dashboard should be active 

When a menu item is active, this should be denoted by the following: 

  • Visual differentiation as shown in the mockup (font color ~#3A335E and bolding) 
  • Alt Text: "Current: " should be appended before the menu item. E.g. "Current: Example Sets" or "Current: My Solution Sets" 

Behavior

A given menu item should become active if you scroll to it. On page load, when the user is at the top of the screen, this should be the top menu item. When the user scrolls down so that the next heading is at least 50% up the page, this should change the active menu item to the one matching the new heading. When scrolling up, the opposite should happen: when the previous heading goes beneath the midpoint of the page (the section above takes up >50% of the page), the new active menu item should match the heading of the new section. 

Reference

Style Guide: https://invis.io/CQYLLW8J49U
Fonts: https://www.dropbox.com/sh/c12m6ufweyds20d/AAAdXNPOt8e52DkSAr9pd-a-a/Fonts?dl=0

Acceptance criteria: 

Given that I'm a user on a screen wide enough to view the sidebar, I should encounter the current section I'm in as active in the sidebar. When I click a different section and it moves to the new section, this new section's sidebar link should be active. Alternatively, when I scroll to a new section, this should similarly update the active sidebar link. 

rupeshparab added a commit that referenced this issue Feb 3, 2021
#1639 - activate links based on scroll position
@abaranowska1
Copy link

Tested

  • Given that I'm a user on a screen wide enough to view the sidebar, I encounter the current section I'm in as active in the sidebar
  • When I click a different section and it moves to the new section, this new section's sidebar link is active
  • Alternatively, when I scroll to a new section, this similarly updates the active sidebar link

Peek 2021-02-04 15-29

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

No branches or pull requests

2 participants