Open sara-amanda opened 1 year ago
@BobbyBaileyRB @coultonbunney-usds @alexiawunder This ticket is in response to Bobby's Slack thread about print/download buttons.
Let me know if you have any questions. Happy to help!
One thing I've been curious about this entire time is that the primary navigation menu for va.gov is essentially what we want to create here. It uses aria-haspopup=true and has been in wide use for some time. Can we learn from that here, so that we may not need to treat this as so experimental?
Excellent question, @coultonbunney-usds !
I had to inquire about this one because the header was before my time, but I was able to gather the following information that should help to answer your question:
I hope that helps! :slightly_smiling_face:
@artsymartha68 @laflannery @briandeconinck
This post is a great resource regarding menus and menu buttons: Menus and Menu Buttons from Inclusive Components. @coultonbunney-usds
This is just to note that I met with the team on Friday and clarified our recommendation concerning the download components. Since these components link to an external file, even though they don't actually take the user to another location we recommend that they still be styled and coded as links. I reitterated that the style and coding be consistent.
Note: Aria-controls is not widely supported but won't hurt anything. It appears to be just in JAWS and is ignored in other SR such as VO and NVDA.
"Print and download button menu, we [Medical Records] aren’t ready to implement the text file, so we [MR] are taking that out of the button menu for now. It will be put back in by the time they get to P1."
^Per Lexi in VA.gov Weekly Design Review Meeting 8/30/2023 4-5 p.m. EST
@rileyorr this is an old MHV ticket from our backlog
Hi @alexiawunder and @BobbyBaileyRB! I inherited some older MHV-related CAIA tickets and was wondering if either of you could help me determine if this one should remain open and if it has any status updates.
This ticket appears to be related to a print/download component that was added to the design system and appears to be blocked but I'm not sure why. Lmk if you have any questions or if another person would better know the status of this work. Thanks!
@rileyorr Here is some information about what we've done so far for getting the print/download menu button added to the design system as of January of this year:
This ticket contains the following sections:
Midpoint Review: Print/Download Button
Ticket #57260
aria-haspopup
only has partial support with Android TalkBack. This is something to test with an accessibility specialist before you get too committed to using this pattern. (Preferably an accessibility specialist with an Android device!)button
, while downloading a file is often (but not exclusively) a link. For voice command software users in particular, the distinction between a link and a button is important for how they interact with the page, so the visual presentation should communicate those semantics to the user. Since this is a new component that will go through experimental design you have some flexibility in establishing some new visual styling norms within the dropdown. I don't have specific design recommendations here, except that buttons and links shouldn't have identical styling in this context.aria-haspopup
issue and may provide more space to resolving the material honest issue above.Example Code c/o Bobby
Note: Navigate to “Example” and there is a CodePen Example that Bobby is referencing.
Experimental Warning: WAI APG :warning:
Comes with warning not to use in production on the W3C Site (see: Read this First and large yellow box at the top of the page)
The WAI APG site reflects ideal implementations of ARIA, not real-world implementations by browser and AT vendors.
Recommendations
aria-haspopup feedback
<ul>, <li>, and <a> elements
have built-in functionality and user expectations. Avoid overriding that with role=”menu” etc.Pros, Cons and Unknowns
Pros
Cons
Unknowns
a11y Feedback
There could be a lot of ways we can approach this; however, regardless of the approach, if we are working with an experimental component, the Design System Team will need to be involved to provide guidance, prior to publishing.
a11y Recommendations
Option A: Your Experimental Design
Since all three have button-like behavior …
Voice command is still a challenge.
WAI APG pattern and the CodePen
Option B. Using an Existing Pattern