Open laflannery opened 1 month ago
Hi @laflannery - Thanks for filing this issue. Just a clarification, this is for the "Error" variation of Expandable Alert, correct?
Ya sorry, the red one. We use it when a Facility is closed which is what I came across today
That makes sense. The red/error variation was removed from guidance and Figma because it's not recommended, however it remains in Storybook. I don't like having an accessibility issue in production so I think it should be fixed. But in the interest of time, would the Alert - Error or it's slim counterpart work for that context?
@danbrady I am going to bring this to my team for discussion but here is some additional detail/context:
While we try to figure out the best way to handle this for existing our existing product, @humancompanion-usds would it be considered launch-blocking at a staging review for a new product if we are using this error state component since it has been removed from the official guidance?
Within the context of the page, it looks to me at least like the most important thing here is "Need help after hours?". Can a Veteran get help after hours from a facility that is closed? I see it is an 800 number so perhaps that is the case. Still, if the Info Alert is important enough to not collapse then I don't understand why Facility closed would not be of at least equal importance.
That said, the header of Alert - Expandable should not be vads-color-base-darker. Our headers are not gray! Those all should get fixed.
Thanks for the feedback @humancompanion-usds. We are currently working on a redesign of the Vet Center product and the "Need help" alert is being looked at for some of the reasons you mentioned. However I do want to make sure we focus on the expandable alert just for now. A couple clarifying questions:
vads-color-base-darker
but in Storybook it is using this color.
I do want to confirm though that changing this color would be a DST update as part of the component?
Yes, that was directed at Dan and the Design System team.
Would using the error state expandable alert be considered launch-blocking at a staging review?
Given that we didn't remove it from Storybook, I'm not going to block you because of our bug. But I feel that errors should not have their content hidden. Expandable alerts only make sense for non-critical things. So you could either switch to a standard Alert, or switch to a Warning or Info Alert - Expandable.
Thanks @humancompanion-usds, I appreciate that this wouldn't be blocking and I know my team does as well.
I have already brought this up with @mmiddaugh as something that we need to take a look at and I I will also talk to @aklausmeier next week when she gets back
Bug Report
What happened
On Hover, the red background color becomes darker (#f2938c). Unfortunately, this color does not pass WCAG AA color contrast requirements against the gray text color (#3d4551). The ratio is only 4.3:1 instead of 4.5:1
What I expected to happen
The color contrast should meet WCAG AA requirements in all states.
Reproducing
Steps to reproduce:
1. 2. 3. 4.
Urgency
How urgent is this request? Please select the appropriate option below and/or provide details
Details
I reviewed the other alert types and the error was the only one I found that had a contrast issue. But, if the colors are going to change in the other related ticket, it would be good to retest and be sure the new colors pass in all states