Design comparison
Solution retrospective
I couldn't figure out the way to make the active state of the mobile version work the way I wanted it to. I wanted to keep the original button from the non-active state without having to make a fake button that serves for nothing but just the looks during the active state. I ended up making a separate div with the fake button for the active state and used the classList to show and hide elements.
I'm planning to check other people's codes, but any feedback is welcome!
Community feedback
- @jhd124Posted about 2 years ago
Something like this? https://github.com/kongguksu/article-preview-component/pull/1
1@kongguksuPosted about 2 years ago@jhd124 Thank you for your feedback. I merged your pull request and checked it. I see that the fake button I created next to the shared links on mobile version has disappeared. I didn't want the button to go away. Thank you though for your input though!
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