One of the new features in Nextcloud 12 is the contacts popup:
overflow: hidden; on the parent element.
You can find some sample patches:
If you want to provide an action for the popup, you can have a look at:
Only integration into all the apps in both ways (providing features and displaying them) can make this feature as powerful as it can be.