Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

BEM naming, mobile-first, pseudo-elements

@KristaCalleja

Desktop design screenshot for the Article preview component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I still haven't mastered the z-index issue with the 'share button'. I would appreciate some help! Thank you!

Community feedback

@pikapikamart

Posted

Hey, good work on this one. The layout is good and it resizes well when going in mobile.

Regarding your query, well I think you don't need to use z-index in here. But since you used it, the mobile state share button can't be unclicked right? Well that is because the footer overlay, the pop out one, it overlaps the share button. But since there is a z-index on your share button, you can just remove the z-index in your .footer and your footer-overlay selector.

This way, the pop up will not overlap the share button, it will be visible even when a user clicks on it in mobile view. Because the higher the z-index, the more it is prioritized right, so it hides them. But remove those that I mentioned, and the share button will appear ^^

0

@KristaCalleja

Posted

@pikamart Thank you so much! Your feedback was very helpful!

0

@MojtabaMosavi

Posted

@Krista Calleja, Great job on responiveness, regarding the share icon on the mobile view I sugesst that you include the share icon in the class="footer__social-icons-overlay" and use some sort of modifier or a extra class plus some js to get the behavior.

0

@KristaCalleja

Posted

@MojtabaMosavi Thanks so much!!

0

Please log in to post a comment

Log in with GitHub
Discord logo

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