atbcb / usab-uswds

Website for the United States Access Board, built on Federalist and USWDS.
https://www.access-board.gov
Other
5 stars 10 forks source link

Accordions #184

Open RSD-accessboard opened 4 years ago

RSD-accessboard commented 4 years ago

Use accordions on standard landing pages that have a lot of text on the about page. Also on the prescription drugs page and anywhere else relevant. Use USWDS style accordions

bruce-usab commented 4 years ago

As far as I can tell, the USWDS accordions still do not an expand all feature. But I imagine you can lift code from the KMS.

See this USWDS issue thread for some ideas and good dialog.

RSD-accessboard commented 4 years ago

The 18 F people did give us a link to an example of a site they helped build that had an expand all feature, I can’t seem to find the link though

kengdoj commented 4 years ago

Do you want the toc accordion or the prescription content itself to accordion?

bruce-usab commented 4 years ago

My first priority would be for accordion as warranted for content. I would suggest our Privacy page (with the SORNs) as an excellent initial candidate.

Current issue USWDS issue links to original issue (which has some good examples) and their current prototype.

RSD-accessboard commented 4 years ago

It would be nice if we could figure out how to separate the accordion JavaScript features from the according CSS styling. Currently I use the USWDS accordion and have to undo all of their styling. Let me know if you come across something that just has accordion feature without any styling

kengdoj commented 4 years ago

USWDS is working on in its application

testing link

bruce-usab commented 4 years ago

That implementation seems pretty good to me! I was not expecting much more than they are already demonstrating.

kengdoj commented 4 years ago

waiting for USWDS solution.