fix various bugs

This commit is contained in:
Shawn Erquhart
2018-07-17 11:37:17 -04:00
parent b7b90aaa65
commit 2e7406862e
15 changed files with 119 additions and 67 deletions

View File

@ -16,7 +16,7 @@
"emotion": "^9.1.3",
"lodash": "^4.13.1",
"prop-types": "^15.5.10",
"react": "15.x || 16.x",
"react": "^16.4.1",
"react-aria-menubutton": "^5.1.0",
"react-emotion": "^9.2.6",
"react-toggled": "^1.1.2",

View File

@ -85,10 +85,11 @@ const Dropdown = ({
dropdownWidth = 'auto',
dropdownPosition = 'left',
dropdownTopOverlap = '0',
className,
children,
}) => {
return (
<StyledWrapper onSelection={handler => handler()}>
<StyledWrapper onSelection={handler => handler()} className={className}>
{renderButton()}
<Menu>
<DropdownList width={dropdownWidth} top={dropdownTopOverlap} position={dropdownPosition}>
@ -99,8 +100,8 @@ const Dropdown = ({
);
};
const DropdownItem = ({ label, icon, iconDirection, onClick }) => (
<StyledMenuItem value={onClick}>
const DropdownItem = ({ label, icon, iconDirection, onClick, className }) => (
<StyledMenuItem value={onClick} className={className}>
<span>{label}</span>
{
icon

View File

@ -7,7 +7,7 @@ const IconWrapper = styled.span`
line-height: 0;
width: ${props => props.size};
height: ${props => props.size};
transform: ${props => `rotation(${props.rotation})`};
transform: ${props => `rotate(${props.rotation})`};
& path:not(.no-fill),
& circle:not(.no-fill),