Hi All - I have an issue which I assume is common.
Consider this:
<button style="padding:10px"><span>Save</span></button>
If I target the BUTTON element, the trigger will work if I click the outer edge of the button. But if I click in the center of the button, I’m actually clicking the SPAN element and the trigger does not fire. I believe this is because a child element is essentially sitting on top of the parent element.
The only reason IMO that I am able to fire the trigger is because there is padding which exposes the outer edge of the BUTTON so it is not fully covered by the SPAN.
I can solve this by creating a second trigger for the child SPAN and putting both triggers in the same tab. But this is cumbersome
Have you seen this before? What is the best practice for this type of targeting?
Thanks!