Storybook: Addon-docs: list style bleeds on stories components

Created on 16 May 2019  路  5Comments  路  Source: storybookjs/storybook

Describe the bug
Using addon-docs to showcase material powered Menu, I get an unwanted padding caused by the docs .12345xx ul{padding-left:30px;} coming from the docs.

To Reproduce

  1. install addon-docs alpha 8
  2. show case a component with a ul list in the docs tab
  3. it's padding-left will be too big

Expected behavior
The style of the docs should not bleed down on the components showcased

Screenshots
Normal

InTheDocsTab

System:

  • OS: Windows10
  • Browser: Mozilla Firefox 67.0 64bits
  • Framework: React
  • Addons: addon-docs
  • Version:5.2.0-alpha8
docs bug high priority in progress

Most helpful comment

That's why the issue is still open :trollface:

We're on it. High priority issue before the full release 馃憤

All 5 comments

Same happening to me.
See the "edit" button, it should be 16px, but it's being overwritten by some CSS-in-JS styling.
Also margins and paddings seem to be affected.

2019-07-13_14h28_08
2019-07-13_14h28_41

I have also encountered this. I just upgraded to beta.18 to see if it's been fixed, but still see the issue.

In my case it's the same ul { padding-left: 30px } that OP is seeing.

That's why the issue is still open :trollface:

We're on it. High priority issue before the full release 馃憤

Shiver me timbers!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.0-beta.31 containing PR #7771 that references this issue. Upgrade today to try it out!

You can find this prerelease on the @next NPM tag.

Closing this issue. Please re-open if you think there's still more to do.

Jeepers creepers!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.0-beta.32 containing PR #7788 that references this issue. Upgrade today to try it out!

You can find this prerelease on the @next NPM tag.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tirli picture tirli  路  3Comments

rpersaud picture rpersaud  路  3Comments

ZigGreen picture ZigGreen  路  3Comments

xogeny picture xogeny  路  3Comments

alexanbj picture alexanbj  路  3Comments