P
Matt Studdert• 13,611
@mattstuddert
Posted
Awesome work again, Alex! Just a quick heads up that you can also add the role="alert"
attribute to the error message. This will ensure it's read out to screen reader users when shown 👍
1
Alex• 1,090
@AlexBueckig
Posted
@mattstuddert Thanks a lot for this useful tip, I actually did not know about this yet! 😃 I'll definiately use this from now on in future projects!
0
P
Matt Studdert• 13,611
@mattstuddert
Posted
@AlexBueckig you're welcome! Yeah, it's definitely a good thing to know. Here's a great MDN article with some more information.
1