Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit d05511b

Browse files
committed
add anchor positioning polyfill
1 parent b891ac1 commit d05511b

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

bun.lock

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@eslint/compat": "1.3.2",
2222
"@eslint/js": "9.34.0",
2323
"@lucide/svelte": "0.541.0",
24+
"@oddbird/css-anchor-positioning": "0.6.1",
2425
"@playwright/test": "1.55.0",
2526
"@skeletonlabs/skeleton": "3.2.0",
2627
"@skeletonlabs/skeleton-svelte": "1.5.1",

src/routes/+layout.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
when: demo ? 'signedUp' : 'never',
1515
};
1616
let { children } = $props();
17+
18+
import polyfill from '@oddbird/css-anchor-positioning/fn';
19+
if (typeof window !== 'undefined') polyfill();
1720
</script>
1821

1922
<svelte:head>

0 commit comments

Comments
 (0)