@thecb/components 9.2.7-beta.8 → 9.2.7-beta.9

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.8",
3
+ "version": "9.2.7-beta.9",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -50,6 +50,7 @@ const Modal = ({
50
50
  }) => {
51
51
  const { isMobile } = useContext(ThemeContext);
52
52
  const modalContainerRef = useRef(null);
53
+
53
54
  return (
54
55
  <div ref={modalContainerRef} data-qa={dataQa}>
55
56
  {modalOpen && (
@@ -128,6 +129,8 @@ const Modal = ({
128
129
  dataQa={cancelButtonText}
129
130
  extraStyles={buttonExtraStyles}
130
131
  className="modal-cancel-button"
132
+ role="button"
133
+ name={cancelButtonText}
131
134
  />
132
135
  </Box>
133
136
  <Box width="100%" padding="0">
@@ -143,6 +146,7 @@ const Modal = ({
143
146
  extraStyles={buttonExtraStyles}
144
147
  className="modal-continue-button"
145
148
  role="button"
149
+ name={continueButtonText}
146
150
  />
147
151
  </Box>
148
152
  </Stack>
@@ -162,6 +166,7 @@ const Modal = ({
162
166
  extraStyles={buttonExtraStyles}
163
167
  className="modal-cancel-button"
164
168
  role="button"
169
+ name={cancelButtonText}
165
170
  />
166
171
  <ButtonWithAction
167
172
  variant={
@@ -175,6 +180,7 @@ const Modal = ({
175
180
  extraStyles={buttonExtraStyles}
176
181
  className="modal-continue-button"
177
182
  role="button"
183
+ name={continueButtonText}
178
184
  />
179
185
  </Stack>
180
186
  )}