Design comparison
SolutionDesign
Community feedback
- @grace-snowPosted over 1 year ago
This looks nice
The main areas you could improve this are in terms of form accessibility like
- programmatically linking the error message to its input. The best way to do that is wrapping the hidden error in an element with an aria-live attribute and unique ID, and using aria-desciribedby on the input pointing to that ID
- wrapping the thank you in an aria-live div
- making sure focus moves to the thank you. I'd probably use tabindex -1 on the heading and move focus there on successful submit (and a similar approach on dismiss/reset)
Steps like this really helps assistive technology users
Marked as helpful1@josh76543210Posted over 1 year agoThank you @grace-snow for the feedback. Much appreciated!
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord