Skip to content

Commit

Permalink
fix(atoms): set default padding and background to the 'none' value
Browse files Browse the repository at this point in the history
  • Loading branch information
ej9x committed Jun 13, 2018
1 parent dfb6b2d commit 445d2f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/atoms/Dropdown/DropdownBody.theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const theme = createTheme(name, {
},
},
defaults: {
background: 'white',
padding: 'sm',
background: 'none',
padding: 'none',
borderRadius: 'md',
},
});
Expand Down
10 changes: 5 additions & 5 deletions src/atoms/Dropdown/DropdownPlate.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { DropdownContext } from './DropdownContext';
*/
type DropdownControlledProps = {|
isOpen: boolean,
onCloseDropdown: () => void,
onOpenDropdown: () => void,
onCloseDropdown?: () => void,
onOpenDropdown?: () => void,
children: React$Node,
|}

Expand All @@ -30,7 +30,7 @@ type DropdownUncontroledProps = {|
type DropdownContextData = {|
isOpen: boolean,
toggleDropdown: () => void,
closeDropdown: () => void,
closeDropdown?: () => void,
targetWidth?: number,
outsideClickIgnoreClass: string,
|}
Expand All @@ -52,8 +52,8 @@ class DropdownPlateBase extends Component<DropdownControlledProps> {
const { isOpen, onOpenDropdown, onCloseDropdown } = this.props;

isOpen
? fp.isFunction(onCloseDropdown) && onCloseDropdown()
: fp.isFunction(onOpenDropdown) && onOpenDropdown();
? onCloseDropdown && onCloseDropdown()
: onOpenDropdown && onOpenDropdown();
}

setDropdownRef = (ref: *) => {
Expand Down

0 comments on commit 445d2f8

Please sign in to comment.