Эх сурвалжийг харах

Merge pull request #3616 from overleaf/ae-storybook-docs

Configure Storybook to render Docs stories in iframes

GitOrigin-RevId: ef96a0fad445375fc33c5875958c4a3170f0818e
Hugh O'Brien 5 жил өмнө
parent
commit
4fe179f69e

+ 5 - 1
services/web/.storybook/preview.js

@@ -35,7 +35,11 @@ export const parameters = {
   // Automatically mark prop-types like onClick, onToggle, etc as Storybook
   // "actions", so that they are logged in the Actions pane at the bottom of the
   // viewer
-  actions: { argTypesRegex: '^on.*' }
+  actions: { argTypesRegex: '^on.*' },
+  docs: {
+    // render stories in iframes, to isolate modals
+    inlineStories: false
+  }
 }
 
 export const globalTypes = {