@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indico-data/design-system",
3
- "version": "2.45.1",
3
+ "version": "2.45.2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "lib/index.js",
@@ -28,10 +28,8 @@ function StoryRender(props: any) {
28
28
  open modal
29
29
  </button>
30
30
 
31
- <ModalBase {...props} open={isOpen} clickToDismiss={handleClose}>
32
- <p>
33
- There is nothing to this modal at all. It is completely up to you to style its contents.
34
- </p>
31
+ <ModalBase {...props} open={isOpen} width="300px" clickToDismiss={handleClose}>
32
+ There is nothing to this modal at all. It is completely up to you to style its contents.
35
33
  </ModalBase>
36
34
  </>
37
35
  );
@@ -17,12 +17,18 @@ function ModalAdapter(props: any): React.ReactElement {
17
17
  closeTimeoutMS={120}
18
18
  appElement={document.getElementById(props.node || 'root')}
19
19
  >
20
- {props.children}
20
+ <div className="modal-content">{props.children}</div>
21
21
  </ReactModal>
22
22
  );
23
23
  }
24
24
 
25
25
  export const StyledModalBase = styled(ModalAdapter)`
26
+ .modal-content {
27
+ background-color: var(--pf-primary-color-600);
28
+ padding: var(--pf-padding-4);
29
+ border-radius: var(--pf-rounded-lg);
30
+ }
31
+
26
32
  .${(props) => props.className}__content {
27
33
  position: absolute;
28
34
  top: 70px;
@@ -51,7 +57,7 @@ export const StyledModalBase = styled(ModalAdapter)`
51
57
 
52
58
  .ReactModal__Overlay {
53
59
  opacity: 0;
54
-
60
+ background-color: rgba(0, 0, 0, 0.5);
55
61
  transition: opacity 120ms ease-in-out;
56
62
  }
57
63