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

Addon-backgrounds: Fix grid offset always using default value #13260

Merged
merged 1 commit into from Nov 29, 2020

Conversation

cone56
Copy link
Contributor

@cone56 cone56 commented Nov 25, 2020

What I did

  • Fix falsy value check to allow zero values in offsetX and offsetY parameters
  • Fix default value fallback conditional logic

How to test

  • Is this testable with Jest or Chromatic screenshots? No
  • Does this need a new example in the kitchen sink apps? No
  • Does this need an update to the documentation? No

- Fix falsy value check to allow zero values in offsetX and offsetY parameters
- Fix default value fallback conditional logic
Copy link
Member

@yannbf yannbf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch on the missing parenthesis! Thanks for your contribution!

@shilman shilman added this to the 6.1.x milestone Nov 29, 2020
@shilman shilman merged commit bfc0ed0 into storybookjs:next Nov 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants