@thecb/components 7.0.0-beta.1 → 7.0.0-beta.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/dist/index.cjs.js
CHANGED
|
@@ -43338,13 +43338,12 @@ var Modal$1 = function Modal(_ref) {
|
|
|
43338
43338
|
isMobile = _useContext.isMobile;
|
|
43339
43339
|
|
|
43340
43340
|
var closeBtnRef = React.useRef(null);
|
|
43341
|
-
var modalBodyTextRef = React.useRef(null);
|
|
43342
43341
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, modalOpen && /*#__PURE__*/React__default.createElement(reactAriaModal, {
|
|
43343
|
-
initialFocus: closeBtnRef
|
|
43342
|
+
initialFocus: closeBtnRef,
|
|
43344
43343
|
focusTrapOptions: {
|
|
43345
43344
|
delayInitialFocus: false,
|
|
43346
|
-
fallbackFocus: closeBtnRef
|
|
43347
|
-
} // fallback to resolve unit test errors https://github.com/focus-trap/focus-trap-react/issues/91
|
|
43345
|
+
fallbackFocus: closeBtnRef
|
|
43346
|
+
} // fallback to resolve unit test errors with Jest/tabbable https://github.com/focus-trap/focus-trap-react/issues/91
|
|
43348
43347
|
,
|
|
43349
43348
|
onExit: onExit,
|
|
43350
43349
|
getApplicationNode: getApplicationNode,
|
|
@@ -43378,7 +43377,6 @@ var Modal$1 = function Modal(_ref) {
|
|
|
43378
43377
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
43379
43378
|
childGap: "1.5rem"
|
|
43380
43379
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
43381
|
-
ref: modalBodyTextRef,
|
|
43382
43380
|
borderWidthOverride: noBorder && "0 0 2px 0",
|
|
43383
43381
|
borderColor: !noBorder && SILVER_GREY,
|
|
43384
43382
|
padding: !noBorder && "0 0 1.5rem 0",
|