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

fix(layout-grid): better checks for custom grid props #4502

Merged
merged 3 commits into from
Sep 7, 2021

Conversation

phou87
Copy link
Contributor

@phou87 phou87 commented Sep 3, 2021

Use a better check for when custom grid props are passed in.

Description

Responsive props allow for single values, even outside of an array (e.g. gridMargins={0}), so if a falsey value was passed it would be ignored. This PR fixes the check to allow falsey values such as 0 for grid props.

Scope

Patch: Bug Fix

@vercel
Copy link

vercel bot commented Sep 3, 2021

@phou87 is attempting to deploy a commit to the Uber UI Platform Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Sep 3, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/uber-ui-platform/baseweb/5ovG3gaJkKMLvgSLELJCzUYBugfe
✅ Preview: https://baseweb-git-fork-phou87-grid-checks-uber-ui-platform.vercel.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 3, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 2e6ac17:

Sandbox Source
Basic usage Configuration

@UberOpenSourceBot
Copy link
Contributor

Visual changes were detected on this branch. Please review the following PR containing updated snapshots: phou87#3

@UberOpenSourceBot
Copy link
Contributor

Visual changes were detected on this branch. Please review the following PR containing updated snapshots: phou87#3

test(vrt): update visual snapshots for phou87:grid-checks [skip ci]
@chasestarr
Copy link
Collaborator

Thank you. Alpha tests look good

@chasestarr chasestarr merged commit 8255ff3 into uber:master Sep 7, 2021
khudiono-uber pushed a commit that referenced this pull request Sep 9, 2021
* fix(layout-grid): better checks for custom grid props

* test(vrt): update visual snapshots for fe291d6 [skip ci]

Co-authored-by: UberOpenSourceBot <UberOpenSourceBot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants