BUG - Sev-3 - All - Alert component has duplicate heading accessibility roles when not expandable #620
Labels
accessibility
Accessibility awareness or needs for the ticket
design-system
DS-Bug
Bug tickets specifically for the Design System
front-end
Ticket requires front-end work
What happened?
Found while running unit tests in the VA Mobile App. Several unit tests fail with the Alert component when calling
screen.getByRole('heading')
because both the Alert and child Text components haverole="heading"
properties.Specs:
Steps to Reproduce
Run the unit tests in the VA Mobile App by executing
yarn test
.Desired behavior
The VA Mobile App unit tests should not fail. The Alert component should not specify the
role="heading"
property. Instead, this should be handled by the child Text component by using thevariant="heading"
property.Acceptance Criteria
Bug Severity - BE SURE TO ADD THE SEVERITY LABEL
See Bug Tracking 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
The text was updated successfully, but these errors were encountered: