ministryofjustice / moj-design-system-backlog

MOJ Design System Community Backlog
https://moj-design-system.herokuapp.com/
9 stars 3 forks source link

Sticky sidebar #28

Open simonwhatley opened 5 years ago

simonwhatley commented 5 years ago

Service: Claim for Crown court defence Phase: Live Department: Legal Aid Agency

cccd_sticky_sidebar

simonwhatley commented 5 years ago

Screen Recording 2019-07-19 at 17 22 11 2019-07-19 17_50_33

Service: Moving People Safely Phase: Private Beta Department: HMPPS

adamsilver commented 5 years ago

I worry about this sort of thing and I'm not sure about making it a component. It's a line or two of CSS that might depend on context anyway. I don't know how we'd abstract it - any ideas?

Also I'd use sticky things as a last resort because:

  1. sticky menus are usually employed to solve symptoms that mask the true underlying problem with a design like it's too long in the first place
  2. items within the sticky look like their close at hand but they aren't easy to focus with the keyboard from where the user is scrolled. Not a biggie but worth a thought in some contexts.
theDustRoom commented 4 years ago

Sticky items can be problematic when viewed on smaller/low resolution displays as they may not fit within the viewable area and will obviously not allow the content within to be brought into view when the user scrolls down.