@indico-data/design-system 2.45.1 → 2.45.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -5904,9 +5904,15 @@ function ModalAdapter(props) {
5904
5904
  const { className } = props;
5905
5905
  const contentClassName = `${className}__content`;
5906
5906
  const overlayClassName = `${className}__overlay`;
5907
- return (jsx(ReactModal, Object.assign({}, props, { portalClassName: className, className: contentClassName, overlayClassName: overlayClassName, closeTimeoutMS: 120, appElement: document.getElementById(props.node || 'root'), children: props.children })));
5907
+ return (jsx(ReactModal, Object.assign({}, props, { portalClassName: className, className: contentClassName, overlayClassName: overlayClassName, closeTimeoutMS: 120, appElement: document.getElementById(props.node || 'root'), children: jsx("div", { className: "modal-content", children: props.children }) })));
5908
5908
  }
5909
5909
  const StyledModalBase = n(ModalAdapter) `
5910
+ .modal-content {
5911
+ background-color: var(--pf-primary-color-600);
5912
+ padding: var(--pf-padding-4);
5913
+ border-radius: var(--pf-rounded-lg);
5914
+ }
5915
+
5910
5916
  .${(props) => props.className}__content {
5911
5917
  position: absolute;
5912
5918
  top: 70px;
@@ -5935,7 +5941,7 @@ const StyledModalBase = n(ModalAdapter) `
5935
5941
 
5936
5942
  .ReactModal__Overlay {
5937
5943
  opacity: 0;
5938
-
5944
+ background-color: rgba(0, 0, 0, 0.5);
5939
5945
  transition: opacity 120ms ease-in-out;
5940
5946
  }
5941
5947