@thecb/components 12.1.0-beta.6 → 12.1.0-beta.7

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": "12.1.0-beta.6",
3
+ "version": "12.1.0-beta.7",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -199,6 +199,7 @@ const PaymentFormACH = ({
199
199
  isOpen={showTermsModal}
200
200
  toggleOpen={toggleTermsModal}
201
201
  initialFocusSelector=".modal-close-button"
202
+ linkExtraStyles="display: inline-block;"
202
203
  />
203
204
  </span>
204
205
  )}
@@ -223,6 +223,7 @@ const PaymentFormCard = ({
223
223
  isOpen={showTermsModal}
224
224
  toggleOpen={toggleTermsModal}
225
225
  initialFocusSelector=".modal-close-button"
226
+ linkExtraStyles="display: inline-block;"
226
227
  />
227
228
  </span>
228
229
  )}
@@ -16,7 +16,8 @@ const TermsAndConditionsModal = ({
16
16
  variant,
17
17
  linkVariant = "p",
18
18
  themeValues,
19
- initialFocusSelector = ""
19
+ initialFocusSelector = "",
20
+ linkExtraStyles = ""
20
21
  }) => (
21
22
  <Modal
22
23
  modalOpen={isOpen}
@@ -54,7 +55,7 @@ const TermsAndConditionsModal = ({
54
55
  weight={themeValues.fontWeight}
55
56
  hoverStyles={themeValues.modalLinkHoverFocus}
56
57
  textDecoration={themeValues.modalLinkTextDecoration}
57
- extraStyles={`display: inline-block; width: fit-content; cursor: pointer; min-height: 24px; line-height: 24px;`}
58
+ extraStyles={`display: inline-block; width: fit-content; cursor: pointer; min-height: 24px; line-height: 24px; ${linkExtraStyles}`}
58
59
  role="button" // This should always be a "button" since it opens a modal
59
60
  className="modal-trigger"
60
61
  >