Open kevwalsh opened 2 years ago
This issue was surfaced again: https://dsva.slack.com/archives/C0FQSS30V/p1673645534388259
I would want this done other places this is used as well. 2 of those places are Benefits Detail pages and Resources and Support pages, both of which are PW products. Because this crosses both teams, is this a CMS issue OR is this actually something that has to be done per template/content type so I should make a ticket for PW for their products?
@laflannery can you give this a defect level to assist with prioritization, please?
User Story or Problem Statement
VAMC editors can currently choose whether or not to include a table of contents on VAMC detail pages, using this checkbox.
When this component is used incorrectly by a VAMC editor (there are not h2s on the page, in some cases because the editor has added only h3s) the design system component shows an "On this page" header, with no links.
This is a known issue that will not be resolved at the design system component level https://github.com/department-of-veterans-affairs/va.gov-team/issues/28249#.
There are a half dozen content types / page templates in the VAMC product for which the ToC is not optional.
This task is to make the VAMC detail page ToC dependent on the existence of two h2s, and removing the the option for editors.
Acceptance Criteria
Implementation steps