Add to Cart modal lacks an announcement or alert
| Field | Value |
|---|---|
| Rule code | Manual_AddToCartAlert |
| WCAG conformance level | AA |
| WCAG success criterion | 4.1.3 Status Messages |
| Must be fixed at source | No |
Description
The Add to Cart modal is missing a live announcement or alert for assistive technologies. Without proper alerts, screen reader users may not be informed that an important modal has appeared, affecting the overall user experience and accessibility.
How to fix
Ensure there is an announcement/alert when add to cart is activated that the product has been added to the cart or if there is an error. Use aria-live="assertive" or role="alert" to ensure the Add to Cart modal is announced to screen reader users when it appears.