@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.esm.js
CHANGED
|
@@ -43330,13 +43330,12 @@ var Modal$1 = function Modal(_ref) {
|
|
|
43330
43330
|
isMobile = _useContext.isMobile;
|
|
43331
43331
|
|
|
43332
43332
|
var closeBtnRef = useRef(null);
|
|
43333
|
-
var modalBodyTextRef = useRef(null);
|
|
43334
43333
|
return /*#__PURE__*/React.createElement(Fragment$1, null, modalOpen && /*#__PURE__*/React.createElement(reactAriaModal, {
|
|
43335
|
-
initialFocus: closeBtnRef
|
|
43334
|
+
initialFocus: closeBtnRef,
|
|
43336
43335
|
focusTrapOptions: {
|
|
43337
43336
|
delayInitialFocus: false,
|
|
43338
|
-
fallbackFocus: closeBtnRef
|
|
43339
|
-
} // fallback to resolve unit test errors https://github.com/focus-trap/focus-trap-react/issues/91
|
|
43337
|
+
fallbackFocus: closeBtnRef
|
|
43338
|
+
} // fallback to resolve unit test errors with Jest/tabbable https://github.com/focus-trap/focus-trap-react/issues/91
|
|
43340
43339
|
,
|
|
43341
43340
|
onExit: onExit,
|
|
43342
43341
|
getApplicationNode: getApplicationNode,
|
|
@@ -43370,7 +43369,6 @@ var Modal$1 = function Modal(_ref) {
|
|
|
43370
43369
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
43371
43370
|
childGap: "1.5rem"
|
|
43372
43371
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
43373
|
-
ref: modalBodyTextRef,
|
|
43374
43372
|
borderWidthOverride: noBorder && "0 0 2px 0",
|
|
43375
43373
|
borderColor: !noBorder && SILVER_GREY,
|
|
43376
43374
|
padding: !noBorder && "0 0 1.5rem 0",
|