You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need a way to message users to give them feedback when they interact with the page, like clicking "Archive Template" or "Save as Draft" to let them know that it succeeded or failed.
Flash messages are a possible solution. Fraser suggested "Toast" as a possible solution since it's included within React Aria Components, but we are uncertain about whether it meets accessibility requirements. Also, we're wondering what the implementation is like, and how it compares to either creating our own custom solution.
The text was updated successfully, but these errors were encountered:
So far, i tested out react-toastify which is the most popular toast messaging package. It worked, and was easy to style. The messages have a role=alert for screen readers, and also a close button to allow users to close. I was reading about role-alert here: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/alert_role, and it seems that this might be sufficient to make the flash messages accessible.
I started reading about React Aria's "useToast" here: https://react-spectrum.adobe.com/react-aria/useToast.html. It's much more complicated, but it might add additional accessibility for screen readers. I will research that next.
We need a way to message users to give them feedback when they interact with the page, like clicking "Archive Template" or "Save as Draft" to let them know that it succeeded or failed.
Flash messages are a possible solution. Fraser suggested "Toast" as a possible solution since it's included within React Aria Components, but we are uncertain about whether it meets accessibility requirements. Also, we're wondering what the implementation is like, and how it compares to either creating our own custom solution.
The text was updated successfully, but these errors were encountered: