Fix Accessibility Violation - Header level#9918
Conversation
Header under h1 has to be an h2, but it can be styled like an h3 Co-authored-by: Gina Yamada <gina.yamada@gsa.gov>
|
Is this something that would have been caught by any of our 508 checks? Like can we add a regression spec for this view/page? |
…iolation on the how to verify page
Yes, that is a good idea. I am looking now for an example. If you a know of a good example- please share. I am hoping to get this in asap. Thank you |
https://github.com/18F/identity-idp/blob/011d42c7a454afa1f13d7d9cc7ad4dffd3386698/spec/features/accessibility/idv_pages_spec.rb is where I'd start |
|
Thank you @zachmargolis and @mitchellhenke |
|
I'm somewhat confused what is the expected heading hierarchy of this page, or at least why "Verify your identity online" and "Verify your identity at a Post Office" have different heading levels. This would imply that "Verify your identity at a Post Office" is a subheading of "Verify your identity online", which doesn't seem correct to me, since they're presented as opposing options. Current: Recommended: |
|
@carmenrosalop The How to Verify page had an accessibility violation on it. The page had a h1 tag and a h3 tag. It did not have an h2 tag. The violation: heading-order: Heading levels should only increase by one. To fix the violation, I changed the first h3 into an h2. I added a class of h3 on it so it would pick up the h3 style. However, Andrew points out a valid concern I overlooked; the hierarchy is now not accurate. (See current.) Can I move forward with Andrew's suggestion and change all of the h3 tags to h2 tags? Not sure if I need additional approval or if your sign off is enough? I imagine Figma will need to be updated as well. (Size increase, for example from h3 to h2). If this is okay, I will write up a developer ticket and get this resolved. |
|
After meeting with @carmenrosalop, I created a new ticket to make updates to UI for this view. Rather than the recommendation, we will..
|
🎫 Ticket
LG-12109 Fix Accessibility Violation on How to Verify View
🛠 Summary of changes
📜 Testing Plan
doc auth steps accessibility on mobileGina Confirmed:
👀 Screenshots