[ElementCallComponent] Use compound-web's PortalRoot in EC.

This commit is contained in:
Timo K.
2026-10-08 19:14:01 +02:00
parent 471c76c0e7
commit f322af2742
11 changed files with 109 additions and 45 deletions
+12
View File
@@ -121,4 +121,16 @@ export interface ElementCallProps {
* the most recently set language wins for all of them.
*/
language?: string;
/**
* Where the parts of Element Call that float above it — its menus and
* tooltips, which Compound portals out of the call — are rendered. Left out,
* they go into the host document's body, as they do for any other component
* on the host's page.
*
* A host that moves Element Call's DOM into another document, such as a
* Document Picture-in-Picture window, passes that document's body here so
* that a menu opens in the window its button is in. Changes take effect at
* once.
*/
portalRoot?: HTMLElement | null;
}