Back to the sample: auditing a snackbar

Live demo: the snackbar, before and after

Left is the original code from the UI Guidelines sample, unchanged. Right is the version with the audit's blockers fixed, also unchanged from the sample. Both run on React 18.3.1.

What this shows, and what it doesn't. Only the blockers were fixed, as the buyer asked, so the fixed version keeps the light green. White on #4CAF50 is about 2.78:1 (calculated), which fails 1.4.3 Contrast (Minimum) (AA). The audit lists that as a Serious finding still to fix. Nothing here has been tested with a screen reader, and it is not a claim that either version meets WCAG 2.2 AA.

Before

After (blockers fixed)

Things to try