Skip to content

Commit

Permalink
fix: issue that py value is not applied when the value is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
boulder-101 committed Oct 30, 2023
1 parent 0712c4b commit 8806422
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vibrant-components/src/lib/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable max-lines */
import type { Align, Side } from 'packages/vibrant-utils/src/types';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import {
Expand Down Expand Up @@ -264,7 +265,7 @@ export const Dropdown = withDropdownVariation(
<Box alignSelf="flex-start">
<Box
backgroundColor="surface2"
py={py ? py : CONTENT_PADDING}
py={py !== undefined ? py : CONTENT_PADDING}
elevationLevel={4}
rounded="md"
minWidth={[280, 280, 240]}
Expand Down

0 comments on commit 8806422

Please sign in to comment.