Design comparison
SolutionDesign
Solution retrospective
help me fix the issues thank!
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, great work on this one. Ugm the layout is very much different, when submitting or just creating website in general, try to make the layout same as the design as much as you can:>.
Some other suggestions would be:
- Avoid using
height: 100vh
on a large container especially thebody
tag, as this limits the element's height based on the remaining screen's height. Usemin-height: 100vh
instead, this takes full height but lets the element to expand if needed. - Always have a
main
element to wrap the main content of your page. This is landmark element that helps user to properly navigate your site. On this, usemain
on your.container
instead ofdiv
. - Avoid using
vh
unit on css properties especially theheight
since this is not consistent, userem
instead. - Both
img
should be usingalt=""
and extraaria-hidden="true"
attribute on theimg
. A decorative image needs to be hidden at all times by using the method I mentioned. - Using
button
alone to use on accordion is not accessible, you would need to addaria-expanded
attribute on it as well. But if you don't want, usedetails
element. This is a native element that is intended for accordions. It is much accessible and you don't need to configure anything else on it. - The
img
inside thebutton
should havealt
. Always remember to include thealt
attribute on theimg
tag, otherwise assistive tech will read the source path of the image. - The question per accordion should not use a heading tag, just use regular
p
tag on it. - Lastly, just a quick tip, you can use
::before
or::after
pseudo selector instead of usingimg
element to show something.
Aside from those, great again on this one.
Marked as helpful0@mahnoork18Posted about 3 years ago@pikamart thank you for such detailed feedback, much appreciated! i would definitely fix the issues and will keep them in mind in the future.
0 - Avoid using
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