Design comparison
Solution retrospective
Any suggestion and feedback are welcome:)
Community feedback
- @pikapikamartPosted over 3 years ago
Hey, great work on this one. The desktop layout is fine and the mobile state is fine as well.
Some suggestions would be that:
-
Your navbar elements should be wrapped inside
a
tags and not justli
. Since they are links, nesting them ina
tags is the right way. -
Do not remove the
outline
on the buttons or in any other interactive elements. Those outlines serves as a visual pointer, especially when using keyboards only. If you were to remove the outline, make sure to add some visual on the:focus
state on the element, just to signify that a user is in the element. -
On the modal pop up.
3.1. The x button should be on the right side and you should wrapped it inside
button
since it is interactive element.3.2. The layout on the modal seems different to what it should be. You are missing some details here and there. You could check out my solution to have a guide on the details or how to tackle it.
3.3. You can remove the scrollbar on the modal by adding something like this
/* Hide scrollbar for Chrome, Safari and Opera */ .example::-webkit-scrollbar { display: none; } /* Hide scrollbar for IE, Edge and Firefox */ .example { -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ }
Just simply change the selector to the selector which have the overflow property declared.
-
Resizing the browser, your layout is getting narrow center, it will be really good if it doesn't scale like that. Making it have a fixed
max-width
then just add thewidth: 100%
something like that. Just to prevent it looking like squished. -
Your hamburger menu as well needs to be wrapped inside a
button
element. This will really help screen-reader user to quickly navigate the navbar dropdown. For accessibility. -
Lastly, adding a
disable
property on the out of stock button will be really good.
But still, good work on this one^
1@KIRUBASHANKAR26Posted over 3 years ago@pikamart Thank you for the suggestion, your code is awesome.
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