Issue: Button Text Update for Upload Process Not Announced to Screen Readers
Problem:
During the SMS sending process, when uploading a CSV of phone numbers, the "Upload" button dynamically changes to "Cancel" immediately after clicking. This change:
Lasts for only 1–3 seconds during the upload process.
Not announced to screen readers, leaving assistive technology users unaware of the updated state.
May confuse users because the action is available for such a brief window, making it difficult to act upon.
This design limits the experience for screen reader users and may create confusion for all users, especially if they miss the temporary "Cancel" state.
Proposed Solution:
Replace the "Cancel" button for short upload processes (1–3 seconds) with a non-interactive status message, such as "Uploading...". For longer uploads, ensure the "Cancel" option is accessible and actionable.
Implementation Details:
1. For Short Upload Durations (1–3 Seconds)
Replace the "Cancel" button with a non-interactive status message:
Issue: Button Text Update for Upload Process Not Announced to Screen Readers
Problem:
During the SMS sending process, when uploading a CSV of phone numbers, the "Upload" button dynamically changes to "Cancel" immediately after clicking. This change:
This design limits the experience for screen reader users and may create confusion for all users, especially if they miss the temporary "Cancel" state.
Proposed Solution:
Replace the "Cancel" button for short upload processes (1–3 seconds) with a non-interactive status message, such as "Uploading...". For longer uploads, ensure the "Cancel" option is accessible and actionable.
Implementation Details:
1. For Short Upload Durations (1–3 Seconds)
aria-live="polite"
to announce the status change to screen readers.2. For Longer Upload Durations
aria-live="polite"
andaria-atomic="true"
to announce the button's text change.3. Maintain Accessibility
4. Focus Management
Steps to Implement:
aria-live
andaria-atomic
attributes to dynamically update and announce the button's state.Acceptance Criteria:
References:
This solution ensures the upload process is accessible and user-friendly, providing clear feedback and meaningful actions for all users.