department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
96 stars 70 forks source link

Editorial experience: heading levels #13881

Open mmiddaugh opened 3 years ago

mmiddaugh commented 3 years ago

Issue Description

Josh identified a DEFECT-2 headings level issue occurring inside the "Prepare for your visit" accordions.

Headings on the page should increase by one in a logical order. The absence of headings within the accordion elements caused a skipped level between the h2 and h4 headings on the page.

The Facilities team is resolving the issue by placing the accordion buttons within a h3 so that no editing would need to be done to the collapsible content's headings.

We need to address the editorial experience to ensure that editors are able to only add H4 and above so that this defect is not able to recur. This issue blocks delivery of our defect resolution.

Tasks


How to configure this issue

kevwalsh commented 3 years ago

While it's possible to lock down the heading options, i think this implementation pattern (rich text editors with unique heading rules, depending on the context) might not be the most sustainable or scalable approach.

The "Prepare for your visit" section with accordions driven by rich text fields was an MVP implementation, and the original goal was to harden these fields down, so that editor-submitted headers could be removed altogether, and the associated risk to accessibility.

Substantial research was done on the content model for Parking, for example, and it was determined (september 2019) that this accordion could easily be "fieldable". (new information may have arisen to suggest slightly different content design or requirements)

VA_Pittsburgh_Health_Care___Pittsburgh_VA_Medical_Center-University_Dr

similarly, we should have enough data across facilities to harden the content model for Transportation.

VA_Pittsburgh_Health_Care___Pittsburgh_VA_Medical_Center-University_Dr

In the absence of content model hardening (or as an interim solution) perhaps we can look at improved help text on this part of the Facility form, to explain what headers should be used.

Another option is to remove the possibility of headers altogether, a solution we support in other parts of the CMS.

I've created https://github.com/department-of-veterans-affairs/va.gov-cms/issues/4084 where we can consider various approaches to this problem.

jilladams commented 1 year ago

@laflannery FYI this also exists. It's an old case, and could potentially be helped by magical headers, when they're ready.

laflannery commented 1 year ago

@jilladams I agree that these could potentially be hardened more using magical headers