Design comparison
SolutionDesign
Solution retrospective
Not sure if I used aria-attribute correctly in input field. MDN docs was a bit confusing to me.
Community feedback
- @vanzasetiaPosted over 2 years ago
Greetings, Lucas! 👋
Good effort on this challenge! 👍
Yeah, I do sometimes feel confused by the MDN documentation (good to know that I am not the only one who feels it 😆). There are a lot of text and links which makes it looks complicated to me. 😅
Anyway, some suggestions from me.
- I am not sure about the ARIA attributes. I did things differently. So, I would have an
aria-describedby
attribute on theinput
element. After that, I had anaria-live
on the error message element. This way, once the error message is visible then the screenreader can also announce the error message. You can see my solution to understand what I did. - For the responsiveness of the site, on
1000px
width, theinput
element and the image are very wide. So, I would recommend having a container element to limit the width of all elements. I recommend setting amax-width
andmargin: 0 auto
to center the elements horizontally.
That's it! Hope this helps. 😊
Marked as helpful1 - I am not sure about the ARIA attributes. I did things differently. So, I would have an
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