Intro-component. Flex,Sass,Mobile-first.
Design comparison
Solution retrospective
Hey guys! A few new challenges were met on this one =)
- When you insert an invalid input and the error appears, some elements move around a bit. Is there a way of "stabilising" them?
- I used " @include breakpoint () {} " method for this project, instead of putting all the media queries in a separate file. Is there any major differences between these 2 methods? Or it's just a preference ? Thank you as usual for your advices! Bisous Bisous!
Community feedback
- @ApplePieGiraffePosted about 4 years ago
Hey, Artem Ponomarenko!
You've done a good job, once again, on another challenge! π Your solution looks good and responds well! π
For your first question, you can set the
opacity
of the error message to0
rather than setting thedisplay
tonone
so that the error message still takes up space when it isn't visible. Then you can set theopacity
back to1
when the error message should be seen but the height of the form shouldn't change because no new content is added. π IDK... that's just an idea. Perhaps try playing around with thevisibility
property to achieve the same effect.I don't use mixins in Sass very muchβso I might let someone else take your second question. π
Keep coding (and happy coding, too)! π
1@ArtemPonomarenkoPosted about 4 years ago@ApplePieGiraffe
Oh wow! That's a great idea!! Thanks for the tip! Will implement! Cheers!
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