diff --git a/packages/overlay/src/ActiveOverlay.ts b/packages/overlay/src/ActiveOverlay.ts index 0ffbd43dcd..2b04e42c7c 100644 --- a/packages/overlay/src/ActiveOverlay.ts +++ b/packages/overlay/src/ActiveOverlay.ts @@ -37,6 +37,14 @@ export interface PositionResult { positionTop: number; } +declare global { + interface Document { + fonts?: { + ready: Promise; + }; + } +} + type OverlayStateType = | 'idle' | 'active' @@ -392,6 +400,7 @@ export class ActiveOverlay extends SpectrumElement { public async updateOverlayPosition(): Promise { if (this.popper) { + await (document.fonts ? document.fonts.ready : Promise.resolve()); await this.popper.update(); } }