Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Pad preview document body instead of iframe element #2

Merged
merged 25 commits into from
Mar 1, 2020
Merged

Conversation

rbardini
Copy link
Owner

@rbardini rbardini commented Feb 29, 2020

What this PR does

Add paddings to the preview document body instead of the iframe element, to better support Storybook's new layout parameter and prevent hiding overflown content (e.g. cut-off shadows).

Demo

Changelog

  • Add withPaddings decorator
  • Update README with decorator usage
  • Migrate example to storybook/react with elevated card example
  • Remove default margins from example preview
  • Refactor PaddingSelector component
  • Update linting rules and dependencies

Closes #1

@rbardini rbardini added the enhancement New feature or request label Feb 29, 2020
@rbardini rbardini self-assigned this Feb 29, 2020
@rbardini rbardini merged commit 428c70a into master Mar 1, 2020
@rbardini rbardini deleted the pad-document branch March 1, 2020 15:36
@github-actions
Copy link

github-actions bot commented Mar 1, 2020

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pad preview document body instead of iframe element
1 participant