When we want to detect which internal component we are clicking on some webcomponent,we can use event.composed to check whether the event is broadcasted through a webcomponent, and then check the array list returned from event.composedPath() to look up the DOM, if found then we can confirm we are clicking on the specified DOM node and do some specific things.
https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath