remix-run / remix-website

327 stars 74 forks source link

Make doc sections collapsable #228

Closed brookslybrand closed 5 months ago

brookslybrand commented 5 months ago

We have a lot of docs, so many that you can't see all the sections immediately

It would be really great to make the nav headers on the side collapsable. Also, need to make sure they're keyboard accessible

Screenshot 2024-03-20 at 10 52 55 AM
sergiodxa commented 5 months ago

The simplest way would be to use <details> tag

seanmcquaid commented 5 months ago

Just worked on this in a local branch! Any chance I can be added as a contributor so I can put up a PR?

sergiodxa commented 5 months ago

@seanmcquaid you don’t need to, you can fork the repo, push your branch to the fork and then open a PR from your repo to this repo

seanmcquaid commented 5 months ago

Awesome, thank you!! Might be worth adding to the docs as well!

brookslybrand commented 5 months ago

Awesome, thank you!! Might be worth adding to the docs as well!

Thank for the suggestion! How does #235 look to you?