Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Padding added in screenshots when using a wrapper with "display: contents" #787

Open
veej opened this issue Jul 12, 2023 · 1 comment
Open
Labels
bug Classification: Something isn't working CLI needs triage Tracking: Issue needs confirmation

Comments

@veej
Copy link

veej commented Jul 12, 2023

Bug report

Whenever a div with display: contents is added anywhere in the rendering tree of a Story, Chromatic shows a diff with padding wrapping the whole Story component, even if no diff is visible in Storybook:

image

This is reproducible e.g. by adding a decorator to any story made as follows:

decorators: [
    (Story) => (
      <div style={{ display: "contents" }}>
        <Story />
      </div>
    ),
  ],

Chromatic v6.19.9
Storybook v7.0.26

@veej veej added bug Classification: Something isn't working needs triage Tracking: Issue needs confirmation labels Jul 12, 2023
@patbeqo
Copy link

patbeqo commented Apr 29, 2024

+1

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Classification: Something isn't working CLI needs triage Tracking: Issue needs confirmation
Projects
None yet
Development

No branches or pull requests

3 participants