diff --git a/src/components/popover/InternalPopover.tsx b/src/components/popover/InternalPopover.tsx index 9e784e6a..eea8cd50 100644 --- a/src/components/popover/InternalPopover.tsx +++ b/src/components/popover/InternalPopover.tsx @@ -10,11 +10,12 @@ interface InternalPopoverType extends Omit { export const InternalPopover: React.FC = (props) => { - const {children, state, offset = 0, ...args} = props + const {children, state, offset = 8, containerPadding = 24, ...args} = props const popoverRef = React.useRef(null); const {popoverProps} = usePopover({ ...args, offset, + containerPadding, popoverRef }, state); diff --git a/src/components/popover/Popover.style.scss b/src/components/popover/Popover.style.scss index 6b339b73..f45c885b 100644 --- a/src/components/popover/Popover.style.scss +++ b/src/components/popover/Popover.style.scss @@ -5,8 +5,6 @@ &__content { @include box(false); padding: .5rem; - margin-bottom: .5rem; - margin-top: .5rem; overflow-y: auto; } } \ No newline at end of file