Article Preview Component - Vanilla Mobile First

Solution retrospective
I cannot get the social box to hide when the same button is pressed on desktop view. Let me know where I went wrong in my script.
Over all layout and styling with size and typography are not exactly like the original. I'm interested in hearing methods to better imitate the mock ups. Any and all suggestions are welcome :)
Please log in to post a comment
Log in with GitHubCommunity feedback
- @grace-snow
Hi
This doesn't work for me. Events should never fire off elements like image or anything non-interactive. If you use a button it might work
Marked as helpful - @PhilJG
@grace-snow Yes I
m not sure why the script doesn
t work on my live site. Something must have happened when I uploaded onto github. Im still new to github and markdown and I can
t figure out how to push my updates to it.But I have taken your suggestions into account and now I have the toggle working :) I was not familiar with '.toggle' until now!
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