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
97 stars 69 forks source link

Incorrect heading levels on accordions on translated pages #11205

Closed laflannery closed 1 year ago

laflannery commented 1 year ago

Description

The <va-accordion> component has the ability to set heading level so that the title of the accordion follows logical heading order within the page structure. The majority of these throughout the site were recently updated based on a CMS audit of where these were located #10486

A couple translated pages seemed to have been missed in the original audit and therefore still have incorrect heading levels:

Is there a way to determine why there pages were missed and to be sure no other pages were missed from the audit?

Acceptance Criteria

CMS Team

Please check the team(s) that will do this work.

wesrowe commented 1 year ago

@laflannery, what further action is needed to close this epic? Do you want to do some independent verification?

laflannery commented 1 year ago

@wesrowe This is a new issue, after the accordion heading levels were resolved (last sprint I think?) I came across a couple pages where there were still some errors. (See comment here for possible clarification)

Let me know if that helps answer your question about where this issue came from

wesrowe commented 1 year ago

Sorry @laflannery, I mistook this for the defect that started it all (lesson learned again: don't read while talking)

laflannery commented 1 year ago

@jtmst After looking at the conversations you've been having in slack I looked at some other pages and it seems that anything using an accordion group/item still has an H4 heading. Sometimes this is the correct heading, just by nature of the page set up, but often it is not.

Examples of some correct instances:

Examples of incorrect instances:

I wanted to make sure it was clear this wasn't just an issue with translated content

jtmst commented 1 year ago

WIP following conversation around whether or not this should be addressed via passed header levels from cms, or by using existing entity IDs. Current plan is to continue implementation by using known entity IDs for non compliant accordions

jilladams commented 1 year ago

Should we re-point this given the new info / new sprint?

laflannery commented 1 year ago

@jilladams I reviewed the above example pages I had previously identified in this situation and I have a few updates:

NOTE: I just want to reiterate again that these were examples I found, not an extensive list. I am unaware of what is causing this change in header levels so I do not know if I should try and find a list or track down more instances of where these might be used - if that would be helpful let me know.

jilladams commented 1 year ago

Reopening to investigate further.

jilladams commented 1 year ago

Meeting with Laura, Josh, Ryan, Wes & Me:

Work to consider, tbd if we go this route:

jilladams commented 1 year ago

Wes and I talked to @davidconlon about this in sync briefly today. Dave's take:

He agreed: this is a thing to prioritize for future quarters, may require a working meeting (later, maybe Q1) with Laura / Beth / Danielle to understand how we're solving in content structure / what we're solving for, to back into the fix.

laflannery commented 1 year ago

@jilladams and @wesrowe I was going through my a11y issues to clean them up and I'm closing this as all examples on this page are now resolved now that the plugin is on prod