@mattstuddert
Posted
Nice work on this challenge, Nick! I'm glad to hear you found working mobile-first to be a big improvement. I find it a much simpler workflow and find it leads to less code, which is always nice!
As for the email validation, I'd recommend changing the type
attribute on the input to be type="email"
. You can then listen for when the form is submitted and use the JS Validity State API to check whether it is a valid email pattern or not.
As for improvements, you can see in the design comparison slider a few small sizing and spacing differences with the design, which could be tackled. But it's nothing major.
I hope this helps. Let me know if you have any questions! 🙂
Marked as helpful
@nickcarlisi
Posted
@mattstuddert I haven't heard of validity state, but I'm going to look into it now. Thanks for the advice!