Description
p5.js version
No response
What is your operating system?
Windows
Web browser and version
Google Chrome 133.0.6943.143
Actual Behavior
The toast notification for some actions (like "sketch saved") doesn't get announced by the screen reader
Expected Behavior
Since a toast is a notification, it should be announced in a timely manner particularly since the toast will go away.
Sometimes a toast like "autosave enabled" does get announced.
I think there is an ARIA live region encapsulating the toast, but since the toast element would disappear from the DOM once visibility is switched off, the live region cannot be announced in due time.
Thoughts on approaching this and similar issues:
1).Set an announcement live region in the page, and update it whenever any status update sent in a toast happens.
2). Increase the duration of the toast might be helpful for giving enough time for the user to finish their action
Steps to reproduce
Steps:
- Open a sketch on editor.p5js.org
- Login with your credentials
- Open up a screen reader
- Edit and save a sketch
- The toast shows up "Sketch saved", however, it doesn't get announced by the screen reader.
Snippet:
// Paste your code here :)