diff --git a/package.json b/package.json index 7dc8fe49..f4676e6b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@netdata/netdata-ui", - "version": "4.7.7", + "version": "4.7.8", "description": "netdata UI kit", "main": "dist/index.js", "module": "dist/es6/index.js", diff --git a/src/components/confirmation-dialog/confirmation-dialog.js b/src/components/confirmation-dialog/confirmation-dialog.js index 03552d3f..36604ef2 100644 --- a/src/components/confirmation-dialog/confirmation-dialog.js +++ b/src/components/confirmation-dialog/confirmation-dialog.js @@ -25,9 +25,10 @@ const ConfirmationDialog = ({ isConfirmPositive, message, title, + backdropContainerProps, }) => { return ( - +
diff --git a/src/components/confirmation-dialog/styled.js b/src/components/confirmation-dialog/styled.js index 82be5461..8fa68bfb 100644 --- a/src/components/confirmation-dialog/styled.js +++ b/src/components/confirmation-dialog/styled.js @@ -30,9 +30,10 @@ export const Body = styled(ModalBody).attrs({ } ` -export const Dialog = styled(Modal).attrs({ +export const Dialog = styled(Modal).attrs(props => ({ backdropProps: { backdropBlur: 8 }, -})` + ...props, +}))` box-shadow: 0 11px 15px -7px rgb(0 0 0 / 20%), 0px 24px 38px 3px rgb(0 0 0 / 14%), diff --git a/src/components/templates/layer/backdropContainer.js b/src/components/templates/layer/backdropContainer.js index ce630aa1..08c210f3 100644 --- a/src/components/templates/layer/backdropContainer.js +++ b/src/components/templates/layer/backdropContainer.js @@ -5,7 +5,7 @@ import backdropBlur from "@/components/templates/layer/mixins/backdropBlur" const Container = styled.div` position: fixed; inset: 0; - z-index: 35; + z-index: ${({ zIndex }) => zIndex || "35"}; pointer-events: none; outline: none; ` @@ -19,8 +19,8 @@ const Backdrop = styled.div` } ` -const BackdropContainer = ({ children, backdropProps, onClick }) => ( - +const BackdropContainer = ({ children, backdropContainerProps, backdropProps, onClick }) => ( + {children} diff --git a/src/components/templates/layer/index.js b/src/components/templates/layer/index.js index 31cbf46f..5b664ca3 100644 --- a/src/components/templates/layer/index.js +++ b/src/components/templates/layer/index.js @@ -17,6 +17,7 @@ const Layer = ({ onEsc, borderShadow, children, + backdropContainerProps, backdropProps, ...rest }) => { @@ -44,7 +45,12 @@ const Layer = ({ return ReactDOM.createPortal( backdrop ? ( - + {content} ) : (