HTML, CSS - GRID - FLEX, JS

Solution retrospective
Any feedback would be appreciated!!!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @vanzasetia
👋 Hi Mathias!
👍Good job on completing this challenge! This challenge has a tricky position for the images 😅.
I have some feedbacks on this solution:
- Wrap all your page content with
main
tag except theattribution
. For the attribution, swap thediv
withfooter
. - Currently the accordions are not accessible using keyboard (toggle the accordion panel) and screen reader. I recommend to use
summary
anddetails
tags instead ofdiv
. For the JavaScript, you're going to only allow the user to open one accordion panel at a time (like what you have done). - Also don't forget to add
:focus-visible
style to all accordion panel. This is helpful for users that navigate your website using keyboard. - For
0
value on CSS, you don't need to put any units after it. Just write0
. - Use
rem
or sometimesem
unit instead ofpx
. Usingpx
will not allow the users to control the size of the page based on their needs. - Don't limit the height of the
body
element, it will not allow the users to scroll the page if the page content needs moreheight
. Usemin-height
instead. - Make sure that your solution looks good on all screen sizes, currently on mobile landscape mode and on desktop view doesn't look good.
- About the
container
, I guess you can don't need to set anyheight
for it, I recommend to let thepadding
and the elements inside it that control theheight
. This will make yourcontainer
more responsive. - Remove this CSS code unless you have a reason of doing it. If you have the reason, please tell me.
html { height: 100%; }
- Consider using
js-
as the prefix for any DOM elements that you want to manipulate through JavaScript and don't put any styling to anyjs-
class (it's only for JavaScript). This will make your code more maintainable! - I recommend to use
let
instead ofvar
to any variables that you want to reassign.
That's it! Hopefully this is helpful!
- Wrap all your page content with
Join 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