Closed wesrowe closed 2 years ago
I asked re: a CMS content audit of accordions, https://dsva.slack.com/archives/CT4GZBM8F/p1661364422311699?thread_ts=1661354422.964899&cid=CT4GZBM8F
per Swirt he concurred we need a code audit, so this should represent code level check:
[Accordions are] a little more complicated as accordions I think are used in multiple types. So it may be a little more challenging to find them all. Also I think some only exist on the FE.
A question for the engineer who picks this up is probably: will our FE code audit cover all cases of accordions coming through the CMS? And what level of confidence do we have in that answer?
Accordion headers audit
Summary: In total, I've found 7 examples of the va-accordion component using incorrect header levels. 4 in vets-website on various react components, and 3 in content-build on various liquid templates. Some instances can be resolved by passing in the appropriate header level as props, and others will require some conditional logic to be added.
Coronavirus vaccination widget
Coronavirus info pages
Healthcare apply widget
How to pay detail FAQ
Connected Apps FAQ
Manage debt page (CMS)
How to pay
Virtual Agent FAQ
Facility Health Service
Vet Centers Services
Campaign Landing Page
FAQ Multiple template
Healthcare Local Facility
Landing page template
Vet Center
Health Service
Collapsable Panel
QA Collapsable Panel
Description
Discovery = https://github.com/department-of-veterans-affairs/va.gov-cms/issues/10136
Related/companion issue = CMS-side audit for accordions is ticketed #10486
Assuming that the latest version of the Accordion design system component can be passed a parameter that selects its header level...
Search the PW codebase (across repos) to find the instances/templates that use the Accordion component.
In vets-website, there are only 20-25 files using the va-accordion component, and a similar number in content-build, which would make auditing header level and adjusting manually a manageable task.
Acceptance Criteria
CMS Team
Please check the team(s) that will do this work.
Program
Platform CMS Team
Sitewide Crew
⭐️ Sitewide CMS
⭐️ Public Websites
⭐️ Facilities
⭐️ User support