Skip to content

Commit

Permalink
feat(Popover): Applies the shadow helper
Browse files Browse the repository at this point in the history
  • Loading branch information
rapahaeru committed May 28, 2019
1 parent 5c1229d commit 598415b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions components/Popover/sub-components/Content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
import { components, spacing, colors } from '../../shared/theme';
import getArrow from '../arrowProperties';
import Button from '../../Button';
import { hexToRgba } from '../../shared';
import { shadow } from '../../shared';

const _getThemeSpacing = ({ spacing: { xsmall, medium } }) => ({
xsmall,
Expand Down Expand Up @@ -39,11 +39,7 @@ const _getColors = ({
};

const PopoverContent = styled.div`
${({
theme: {
colors: { neutral },
},
}) => `box-shadow: 0 2px 4px 0 ${hexToRgba(neutral[700], 0.5)}`};
${shadow(5)};
align-items: start;
display: flex;
border-radius: 4px;
Expand Down

0 comments on commit 598415b

Please sign in to comment.