department-of-veterans-affairs / va-mobile-app

"If VA were a company, it would have a flagship mobile app."
https://department-of-veterans-affairs.github.io/va-mobile-app/
17 stars 2 forks source link

BUG - Sev-3 - All - Change links/phone numbers in alerts to vadsColorForegroundDefault gray #9596

Closed rbontrager closed 1 month ago

rbontrager commented 1 month ago

What happened?

Change links/phone numbers in alerts to vadsColorForegroundDefault gray. The initial list of alerts changed can be found in this ticket. Alerts with phone numbers/links from that list are callHelpCenter, downtimeError, Waygates, Benefits screen < take photos > accessibility alert, appts cerner alert, prescriptions history we can't refill some of your prescriptions alert, prescriptions details alert on transferred prescriptions, SM cerner alert, no payments screen alert, no vaccine records alert, and no prescriptions alert

Specs:

Steps to Reproduce

Desired behavior

Acceptance Criteria

Bug Severity - BE SURE TO ADD THE SEVERITY LABEL

See [Bug Tracking](https://department-of-veterans-affairs.github.io/va-mobile-app/docs/QA#issue-severity) for details on severity levels

Linked to Story

Screen shot(s) and additional information

Full JSON response for services related to issue (expand/collapse)

Ticket Checklist

TKDickson commented 1 month ago

Note on accessibility (because grey body text, and grey text for links, is not ideal from an accessibility perspective):

This was definitely a "yes, but" accessibility call that we made since the ask was to align with VADS wherever possible. VADS uses blue links on all alert background colors (red, yellow, green, and blue). Although they do pass color contrast minimums (at a AA level), they don't have to account for dark mode. Since we do, we would have to use the blue vivid (bright, light blue) shade for our links in dark mode if we were going to align with them fully, which weren't passing on all background colors and/or against surrounding elements. We tried to do a 1:1 to choose those dark mode background colors for the alerts, but the links didn't pass all of the checks and the buttons clashed with the background. We opted for white buttons on the alerts in dark mode and updated the links to match so they would all pass contrast minimums. We did keep the same blue buttons in light mode that VADS uses, but I believe the links ended up being updated to the dark gray in light mode somewhere along the way (likely to align with the white links in dark mode). I remember all of these calls being super tricky to make. I'd say from an accessibility standpoint, we're fine. We're underlining the links, providing proper spacing for the touchpoints, ensuring the read out as links to screen reader users, including icons to help make it clear that they are links, etc. However, I think this really comes down to being a VADS issue and not being considerate of how their components made translate to dark mode. We'll likely see them revisit the alerts at some point since they are considering adding a dark mode for VA.gov.

TKDickson commented 1 month ago

Design system alert documentation (which includes UI/colors for links)

Need to test light mode:

And dark mode:

TKDickson commented 1 month ago

UI as it currently stands, just for posterity: image.png image.png