Open briandeconinck opened 1 year ago
Having trouble reproducing this on on staging. Am I on the right page? I'm testing the BDD flow and checked both the Upload and Add Another Document buttons on the supporting-evidence/additional-evidence
page, but they both look to be using the button tag at this point.
Can you please share the steps to reproduce? I also tried to search through the 526 apps for any cases of <span role="button"
but haven't found any.
cc @briandeconinck
@shiragoodman - can you help us with this question?
Hi @christinec-fftc and @RakshindaAslam! Same note as on #59271 -- sorry for the slow reply, and please feel free to bug me in Slack to get faster responses!
Testing in the BDD flow, I can also confirm that the markup is different than when this was tested in May. It looks like it's using the va-button
component rather than the va-file-input
component, so there may be opportunities for future refinement. But the concerns I had with assistive technology compatibility should be resolved. You should be good to close this out!
General Information
VFS team name
Benefits Disability Experience Team
VFS product name
Disability Comp Application (21-526 EZ), Add Self Assessment Part A form information to BDD workflow
VFS feature name
Add Self Assessment Part A form information to BDD workflow
Point of Contact/Reviewers
Brian DeConinck - @briandeconinck - Accessibility
*For more information on how to interpret this ticket, please refer to the Anatomy of a Staging Review issue ticket guidance on Platform Website.
Platform Issue
Design components or patterns don't align with Design System guidelines.
Issue Details
On /supporting-evidence/additional-evidence/, the Upload button isn't actually a
button
, but instead is coded as a<span role="button">
with supporting JavaScript for keyboard accessibility. While the element responds to the expected keyboard commands and is announced properly with the screen reader/browser combination I tested with, there are likely to be edge cases where some assistive technology doesn't interact with the element as a user might expect it to.Link, screenshot or steps to recreate
https://github.com/department-of-veterans-affairs/va.gov-team/blob/master/platform/working-with-vsp/vsp-collaboration-cycle/staging-review-images/56612-Allison-040702.png Currently coded as:
Note that nesting the
span
inside alabel
and giving it anaria-label
on top of that is... kind of funky markup. It doesn't throw any validation errors but I feel like it's asking for trouble!VA.gov Experience Standard
Category Number 04, Issue Number 07
Other References
WCAG SC 3.2.4 AA
Platform Recommendation
Maintain material honesty. If it looks like a button, it should be a
<button>
--- with all of the accessibility features already baked in. The best option here is to update to the design system's file input component.VFS Guidance