styleguidist/react-styleguidist

Custom CSS can break Styleguidist's styles

Open

#1,356 创建于 2019年5月7日

在 GitHub 查看
 (2 评论) (2 反应) (0 负责人)TypeScript (1,416 fork)github user discovery
help wanted

仓库指标

Star
 (11,091 star)
PR 合并指标
 (PR 指标待抓取)

描述

Current behavior

requiring a custom CSS in the config can break Styleguidist's styles. In my case the CSS is semantic-ui and the Styleguidist styles are section headers and bodies. Would there be a way to fix this? I imagine quite some scenarios require using a custom CSS.

This is getting into feature request territory and I'm really just guessing about stuff I know very little about, but since Styleguidist is already using JSS, maybe applying a CSS reset specifically to Styleguidist components would work? Or putting examples in iframes?

To reproduce

https://github.com/andrewpeterprifer/example

Expected behavior

Styleguidist styles should be preserved.

贡献者指南