Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!--
Global preview iframe CSS (this file is injected for every story).

Intentional blast radius: styles apply to the whole monorepo canvas (see
storybook/main.ts), not only @wordpress/ui, so any package's portaled overlays
get predictable layout: relative positioning on body and a stacking boundary
on the preview root. Matches @wordpress/ui README guidance for using the
library outside the standard editor ("Elsewhere").

#storybook-root is Storybook's preview mount target; if a future Storybook major
changes the DOM, update this selector. isolation: isolate creates a stacking
context (z-index / compositing) for descendants and portaled layers.
-->
<style>
body {
position: relative;
}

#storybook-root {
isolation: isolate;
}
</style>
Loading