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).
feature/default_network_editable
Mark Stacey 5 years ago committed by GitHub
parent 28af32a84c
commit 48d29e679b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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
? (
<div className="popover-content">
<div className={classnames('popover-content', contentClassName)}>
{children}
</div>
)
@ -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,
}

Loading…
Cancel
Save