DocumentationAll ComponentsContact usChangelog

Storybook problems

Portal is displayed over docs

Description

The portal behaves strangely in the storybook in the documentation tab. The problem is that the portal is normally removed from the DOM when removing the component that uses it, for example when changing the component to the storybook (which was also a problem at the time but was removed here: #663084).

The current problem is specific because when switching from component view to documentation view, the component is not removed but there is a struggle between displaying the documentation and the component. We don't want to remove it, this is a problem only and exclusively because of the way the storybook works.

portal issue in storybook

Possible workaround

Analyzing how the storybook accurately renders the documentation and what can be a reference point for the possible removal of the portal from the DOM, maybe the url that changes depending on the display of the story / docs comes to my mind.