refactor: use external CSS file MenuStyle and ShowRegion stories by tbouffard · Pull Request #698 · maxGraph/maxGraph
Previously, the CSS was included programmatically in the document, which is not the best way to add CSS in the storybook context. In this case, the CSS was added each time the story was rendered, so the CSS definition was added multiple times The stories now use external CSS and use imports to include them. This removes the duplicated includes in the DOM and makes the thing easier to understand by using standard practices. Notice that the Scrollbars story is still using the former way of including custom CSS. It is not functional and requires additional work. So, it will be updated later.
tbouffard
deleted the
refactor/story_improve_custom_css_loading
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters