usds / playbook

The Digital Services Playbook
https://playbook.cio.gov/
1.43k stars 330 forks source link

Update hash as you scroll #239

Open bertday opened 3 years ago

bertday commented 3 years ago

This is a fantastic guide for better public-interest technology—a big thank you to USDS for the work and vision that went into this!

I had one small suggestion, which was that the hash (e.g. #play-7) could update each time you scroll to a new play. The user story I had in mind was:

It looks like there's already a listener on scrolling that highlights the current play in the top-level nav, so maybe the hash update could happen in that hook? I'd be happy to try a PR for this if it seems helpful!

Robert