@thecb/components 7.0.0-beta.7 → 7.0.0-beta.8

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": "@thecb/components",
3
- "version": "7.0.0-beta.7",
3
+ "version": "7.0.0-beta.8",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -48,14 +48,13 @@ const Modal = ({
48
48
  }) => {
49
49
  const { isMobile } = useContext(ThemeContext);
50
50
  const modalContainerRef = useRef(null);
51
- // debugger;
52
51
  return (
53
- <div ref={modalContainerRef}>
52
+ <Box padding="0" ref={modalContainerRef}>
54
53
  {modalOpen && (
55
54
  <AriaModal
56
- // focusTrapPaused={true}
55
+ // fallback to resolve Jest unit test errors when tabbable doesn't exist in jsdom https://github.com/focus-trap/focus-trap-react/issues/91
57
56
  initialFocus={modalContainerRef?.current}
58
- focusTrapOptions={{ delayInitialFocus: false, fallbackFocus: modalContainerRef?.current }} // fallback to resolve unit test errors https://github.com/focus-trap/focus-trap-react/issues/91
57
+ focusTrapOptions={{ delayInitialFocus: false, fallbackFocus: modalContainerRef?.current }}
59
58
  onExit={onExit}
60
59
  getApplicationNode={getApplicationNode}
61
60
  titleText={modalHeaderText}
@@ -193,7 +192,7 @@ const Modal = ({
193
192
  </AriaModal>
194
193
  )}
195
194
  {children}
196
- </div>
195
+ </Box>
197
196
  );
198
197
  };
199
198