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

viewport-addon: Add support for adding new viewports/devices #3098

Conversation

mshaaban088
Copy link
Contributor

@mshaaban088 mshaaban088 commented Feb 25, 2018

Note: This is my first open-source PR.

Issue: Currently you cannot customize or add new viewports/devices as described in the README file

What I did

  • Added support to add more viewports/devices
  • Added support to replace the entire viewports
  • Organized the code respectively
  • Added viewport addon to the cra-kitchen-sink example

How to test

  1. cd examples/cra-kitchen-sink
  2. yarn storybook
  3. You will see the viewport panel is added
  4. Change the viewports.json file locaed under .storybook
  5. Observe the changes

Is this testable with jest or storyshots?
Yes

Does this need a new example in the kitchen sink apps?
No, I added it to the cra-kitchen-sink already

Does this need an update to the documentation?
Yes, but once the PR is reviewed

If your answer is yes to any of these, please make sure to include it in your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant