Details of the issue can be found here in a bug report.
It would be helpful if the modal element didn’t require the trigger element to be a child or siblings child. This set up means that z-index cannot be used in the design that also contains the modal and trigger element.
Thanks!