Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(a11y): add explicit labels to alert icons (#373)
Often information is conveyed by the icons of our alerts (this is an error or warning, is this an external link) that is not conveyed explicitly by the text. These icons are then not presentational, and should be labeled. ## Changes - Explicitly adds aria-labels to svgs in alerts, field level alerts, and alert links - removes `alt` text in favor of `aria-label` since alt text is not universally supported on svg elements (changes to the Icon element's use of alt text will be in a follow-up PR) ## How to test this PR 1. Are the svgs now properly labeled on alerts, field level alerts, and alert links? ## Screenshots ![Screenshot 2024-06-28 at 4 46 36 AM](https://github.com/cfpb/design-system-react/assets/19983248/5f1d92a1-d0f8-40dd-8e79-b7ded6f5bde4)
- Loading branch information