i really tried hard to follow the semantic html5 structure and tried out the aria attributes
Shift the overall look and feel by adding these wonderful touches to furniture in your home
Ever been in a room and felt like something was missing? Perhaps it felt slightly bare and uninviting. I've got
some simple tips to help you make any room feel complete.
Michelle Appleton
28 Jun 2020
${getSVGForShareOption("share")}
What challenges did you encounter, and how did you overcome them?
the outsideClickEventHandler.. with a little bit of help during the debuggin from chatGPT i figured out
&& target.id !== "share-button" && !target.closest("#share-button svg")
and here is my solution =)
function closeShareMenuOnClickOutside(event) {
const target = event.target;
const shareMenu = document.getElementById("share-menu");
const isClickOutsideShareMenu =
!shareMenu.contains(target) && target.id !== "share-button" && !target.closest("#share-button svg");
if (isClickOutsideShareMenu) toggleShareMenu();
}