@thecb/components 9.2.7-beta.6 → 9.2.7-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/dist/index.esm.js CHANGED
@@ -45772,7 +45772,8 @@ var Modal$1 = function Modal(_ref) {
45772
45772
  width: customWidth || "615px"
45773
45773
  },
45774
45774
  underlayClickExits: underlayClickExits,
45775
- "aria-modal": true
45775
+ "aria-modal": true,
45776
+ "aria-name": modalHeaderText
45776
45777
  }, initialFocus ? {
45777
45778
  initialFocus: initialFocus
45778
45779
  } : {}), /*#__PURE__*/React.createElement(Box, {
@@ -45866,7 +45867,8 @@ var Modal$1 = function Modal(_ref) {
45866
45867
  dataQa: closeButtonText,
45867
45868
  extraStyles: buttonExtraStyles,
45868
45869
  className: "modal-close-button",
45869
- role: "button"
45870
+ role: "button",
45871
+ name: closeButtonText
45870
45872
  }))))))))), children);
45871
45873
  };
45872
45874
 
@@ -47935,7 +47937,7 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
47935
47937
  toggleOpen: toggleTerms,
47936
47938
  linkVariant: modalVariant,
47937
47939
  title: modalTitle,
47938
- initialFocus: "[role=\"button\"]:not(.modal-trigger)"
47940
+ initialFocus: ".modal-close-button"
47939
47941
  })), /*#__PURE__*/React.createElement("div", {
47940
47942
  "aria-live": "polite",
47941
47943
  "aria-atomic": true