From 48d29e679b98c76d376baa11b2d6929b1081ec3a Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Tue, 5 May 2020 15:02:53 -0300 Subject: [PATCH] Add Popover `contentClassName` prop (#8514) This class is set on the Popover content. This was required for an upcoming PR (the last permissions system alert). --- ui/app/components/ui/popover/popover.component.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/app/components/ui/popover/popover.component.js b/ui/app/components/ui/popover/popover.component.js index b9d81cc07..f361eac6c 100644 --- a/ui/app/components/ui/popover/popover.component.js +++ b/ui/app/components/ui/popover/popover.component.js @@ -13,6 +13,7 @@ const Popover = ({ onBack, onClose, className, + contentClassName, showArrow, CustomBackground, }) => { @@ -52,7 +53,7 @@ const Popover = ({ { children ? ( -
+
{children}
) @@ -81,6 +82,7 @@ Popover.propTypes = { onBack: PropTypes.func, onClose: PropTypes.func.isRequired, CustomBackground: PropTypes.func, + contentClassName: PropTypes.string, className: PropTypes.string, showArrow: PropTypes.bool, }