Design comparison
Solution retrospective
Any feedback would be appreciated!!!
Community feedback
- @vanzasetiaPosted about 3 years ago
👋 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!
0@mathiconhPosted about 3 years ago@vanzasetia wow, i appreciate your feedback, really u help me so much. Before to continuing, i need say "I don't know speak english, but i try, sorry".
For this code: html { height: 100%; } i have complications with the backgroung color, this color does not fit full screen, so, i add this code in <html> and this is solved.
Really thanks for comment my code and helpme to grow. I will try to apply the changes mentioned above.
0@vanzasetiaPosted about 3 years ago@mathias9968 About the
height
property on thehtml
element, I got it. But, I would recommend to setmin-height: 100vh;
onbody
element instead on thehtml
element. By setting themin-height: 100vh
on thebody
element, you can remove thebackground-repeat
property and theheight
property on thehtml
element.You're welcome! 😉 Glad that it is helpful for you!
0@mathiconhPosted about 3 years ago@vanzasetia Yes, background-repeat is not doing anything here. take a new screenshot with a more similar design, did you see it?. Thank you for your recommendations, I appreciate so much.
Have a nice day dude!! :) Greetings from Argentina.
0 - Wrap all your page content with
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