dce-reactkit 3.0.0-beta.10 → 3.0.0-beta.11

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": "dce-reactkit",
3
- "version": "3.0.0-beta.10",
3
+ "version": "3.0.0-beta.11",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -20,6 +20,15 @@ import ModalType from '../types/ModalType';
20
20
  /*------------------------------------------------------------------------*/
21
21
 
22
22
  const style = `
23
+ .Modal-backdrop {
24
+ position: fixed;
25
+ top: 0;
26
+ left: 0;
27
+ width: 100vw;
28
+ height: 100vw;
29
+ background-color: rgba(0, 0, 0, 0.7);
30
+ z-index: 4000000000;
31
+ }
23
32
  `;
24
33
 
25
34
  /*------------------------------------------------------------------------*/
@@ -330,8 +339,12 @@ const Modal: React.FC<Props> = (props) => {
330
339
  ),
331
340
  display: 'block',
332
341
  margin: 'auto',
342
+ left: 0,
343
+ right: 0,
333
344
  }}
334
345
  >
346
+ <style>{style}</style>
347
+ <div className="Modal-backdrop" />
335
348
  <div className="modal-dialog">
336
349
  <div className="modal-content">
337
350
  <div className="modal-header">