Skip to content

Commit

Permalink
added Box around Popover
Browse files Browse the repository at this point in the history
  • Loading branch information
KitoC committed Jul 31, 2024
1 parent 3292ec0 commit 437934e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/components/Popover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import themeGet from "@styled-system/theme-get";
import styled from "styled-components";
import Icon from "../Icon";
import { PropTypes } from "prop-types";
import Box from "../Box";

const DIRECTIONS_MAP = {
topLeft: "top-start",
Expand Down Expand Up @@ -330,7 +331,7 @@ export default function Popover({
const isVisible = isOpen || isFocused;

return (
<div {...props}>
<Box {...props}>
{triggerComponent}

<FloatingPortal>
Expand All @@ -354,7 +355,7 @@ export default function Popover({
</StyledPopoverContainer>
)}
</FloatingPortal>
</div>
</Box>
);
}

Expand Down

0 comments on commit 437934e

Please sign in to comment.