@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "9.2.7-beta.6",
3
+ "version": "9.2.7-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",
@@ -72,6 +72,7 @@ const Modal = ({
72
72
  }}
73
73
  underlayClickExits={underlayClickExits}
74
74
  aria-modal={true}
75
+ aria-name={modalHeaderText}
75
76
  {...(initialFocus ? { initialFocus: initialFocus } : {})}
76
77
  >
77
78
  <Box
@@ -188,6 +189,7 @@ const Modal = ({
188
189
  extraStyles={buttonExtraStyles}
189
190
  className="modal-close-button"
190
191
  role="button"
192
+ name={closeButtonText}
191
193
  />
192
194
  </Box>
193
195
  )}
@@ -75,7 +75,7 @@ const TermsAndConditionsControlV2 = ({
75
75
  toggleOpen={toggleTerms}
76
76
  linkVariant={modalVariant}
77
77
  title={modalTitle}
78
- initialFocus={`[role="button"]:not(.modal-trigger)`}
78
+ initialFocus={`.modal-close-button`}
79
79
  />
80
80
  )}
81
81
  </Cluster>