Skip to content

Commit

Permalink
fix: css typed object support check
Browse files Browse the repository at this point in the history
  • Loading branch information
narzac committed Mar 16, 2022
1 parent 1df3a56 commit d46b989
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/long-snails-complain.md
@@ -0,0 +1,5 @@
---
'@lion/overlays': patch
---

Fix check for css typed object support
2 changes: 1 addition & 1 deletion packages/overlays/src/OverlayController.js
Expand Up @@ -24,7 +24,7 @@ async function preloadPopper() {
const GLOBAL_OVERLAYS_CONTAINER_CLASS = 'global-overlays__overlay-container';
const GLOBAL_OVERLAYS_CLASS = 'global-overlays__overlay';
// @ts-expect-error [external]: CSS not yet typed
const supportsCSSTypedObject = window.CSS && CSS.number;
const supportsCSSTypedObject = window.CSS?.number && document.body.attributeStyleMap?.set;

/**
* @desc OverlayController is the fundament for every single type of overlay. With the right
Expand Down

0 comments on commit d46b989

Please sign in to comment.