Newsletter sign-up form with success message

Solution retrospective
I'm proud of the solution I came up with to handle the form submit and the way I used to display the success message and the error message.
What challenges did you encounter, and how did you overcome them?The only kind of challenge I had was on how to display the success message correctly. At first, I used a <dialog> HTML tag to display the modal when the user correctly tries to submit a valid email. However, because of the way the success message had to display on different screen sizes, I decided to use a regular <div> element since it was easier for me to give it the behavior I wanted.
Any feedback on how to improve the accessibility or suggestions to make the success message look better on mobile screen sizes. Also, if there are any errors that I may have overlooked or ways to improve the functionality.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Gustavo Gutiérrez's solution.
Join 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