-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,14 @@ export interface PositionResult { | |
positionTop: number; | ||
} | ||
|
||
declare global { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Westbrook
Author
Contributor
|
||
interface Document { | ||
fonts?: { | ||
ready: Promise<void>; | ||
}; | ||
} | ||
} | ||
|
||
type OverlayStateType = | ||
| 'idle' | ||
| 'active' | ||
|
@@ -392,6 +400,7 @@ export class ActiveOverlay extends SpectrumElement { | |
|
||
public async updateOverlayPosition(): Promise<void> { | ||
if (this.popper) { | ||
await (document.fonts ? document.fonts.ready : Promise.resolve()); | ||
await this.popper.update(); | ||
} | ||
} | ||
|
@Westbrook You can use
@types/css-font-loading-module
instead.