@thecb/components 7.0.0-beta.0 → 7.0.0-beta.3
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
|
@@ -43329,8 +43329,14 @@ var Modal$1 = function Modal(_ref) {
|
|
|
43329
43329
|
var _useContext = useContext(ThemeContext),
|
|
43330
43330
|
isMobile = _useContext.isMobile;
|
|
43331
43331
|
|
|
43332
|
+
var bodyTextContainerRef = useRef(null);
|
|
43332
43333
|
return /*#__PURE__*/React.createElement(Fragment$1, null, modalOpen && /*#__PURE__*/React.createElement(reactAriaModal, {
|
|
43333
|
-
|
|
43334
|
+
initialFocus: bodyTextContainerRef,
|
|
43335
|
+
focusTrapOptions: {
|
|
43336
|
+
delayInitialFocus: true,
|
|
43337
|
+
fallbackFocus: bodyTextContainerRef
|
|
43338
|
+
} // fallback to resolve unit test errors https://github.com/focus-trap/focus-trap-react/issues/91
|
|
43339
|
+
,
|
|
43334
43340
|
onExit: onExit,
|
|
43335
43341
|
getApplicationNode: getApplicationNode,
|
|
43336
43342
|
titleText: modalHeaderText,
|
|
@@ -43363,6 +43369,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
43363
43369
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
43364
43370
|
childGap: "1.5rem"
|
|
43365
43371
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
43372
|
+
ref: bodyTextContainerRef,
|
|
43366
43373
|
borderWidthOverride: noBorder && "0 0 2px 0",
|
|
43367
43374
|
borderColor: !noBorder && SILVER_GREY,
|
|
43368
43375
|
padding: !noBorder && "0 0 1.5rem 0",
|