Skip to content

Commit

Permalink
Merge pull request #1143 from primer/storybook-overlay-fix
Browse files Browse the repository at this point in the history
Minor storybook fixes for Overlay
  • Loading branch information
T-Hugs committed Apr 5, 2021
2 parents 4a5b3bb + 1ae664d commit ca6ca88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stories/Overlay.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ import React, {useState, useRef} from 'react'
import {Meta} from '@storybook/react'
import styled from 'styled-components'

import {registerPortalRoot} from '../Portal'
import {BaseStyles, Overlay, Button, Text, ButtonDanger, ThemeProvider, Position, Flex} from '..'

export default {
title: 'Internal components/Overlay',
component: Overlay,
decorators: [
Story => {
// Since portal roots are registered globally, we need this line so that each storybook
// story works in isolation.
registerPortalRoot(undefined)
return (
<ThemeProvider>
<BaseStyles>
Expand Down

1 comment on commit ca6ca88

@vercel
Copy link

@vercel vercel bot commented on ca6ca88 Apr 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.