Design comparison
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. Desktop layout looks really great, it is responsive and the mobile state looks great as well.
Carlos already gave feedback on this one, just going to add some suggestions as well:
- Don't use
overflow: hidden
on thebody
tag, try to inspect the layout while the styling is active, you will notice that you can't scroll because of that style props. - Always have a
main
element to wrap the main content of your page. On this one, the.card
should be using themain
instead ofarticle
. - For those decorative images that are using
alt=""
, add an extraaria-hidden="true"
on it so that it will be totally hidden for screen-reader users. - For those accordion, using
a
tag is not really intended for those because you only usea
tag for links and that is not a link at all. Instead , use thedetails
element for the accordion as they are intended to be used that way and it is accessible right from the start so you won't have to manipulate attributes of the element. - The arrow-icon should be hidden since it is only decorative image. Only use descriptive
alt
for images that are meaningful and add content. Otherwise usealt=""
andaria-hidden="true"
on theimg
.
Aside from those, great job again on this one.
Marked as helpful2@CyrusKabirPosted about 3 years ago@pikamart hello my dear friend . thanks for your great feedback the only reason for using <a> tag it was just for have open and close functionality with css you know using :target and this stuff Otherwise, I will follow all the points you said both in this project and in the next projects. Thank you again.
1 - Don't use
- @Carlos-A-PPosted about 3 years ago
Hello, Style-wise, this looks great and responsive.
- Something that I noticed was that the first accordion in mobile view is unclickable unless I tab to it. It looks like it was a height issue with your .card_visual-content div. Something I did differently was adding position relative to my card-wrapper div and added position absolute to my child icon div. This allowed me to move the child freely around the parent div. I also added padding-top and a background image of the shadow
Marked as helpful1@CyrusKabirPosted about 3 years ago@Carlos-A-P thanks for your feedback my dear friend I try to look to that and fix that. thanks again ♥
0
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