@paypal/checkout-components 5.0.426 → 5.0.428

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.
@@ -91,7 +91,7 @@ export function getContainerStyle({ uid }: {| uid: string |}): string {
91
91
  }
92
92
 
93
93
  #${uid} .paypal-checkout-modal {
94
- font-family: PayPal Plain, system-ui, -apple-system, Roboto, "Segoe UI", Helvetica-Neue, Helvetica, Arial, sans-serif;
94
+ font-family: PayPalOpen-Regular, system-ui, -apple-system, Roboto, "Segoe UI", Helvetica-Neue, Helvetica, Arial, sans-serif;
95
95
  font-size: 14px;
96
96
  text-align: center;
97
97
 
@@ -113,7 +113,7 @@ export function getContainerStyle({ uid }: {| uid: string |}): string {
113
113
  }
114
114
 
115
115
  #${uid} .paypal-checkout-modal {
116
- font-family: PayPal Plain, system-ui, -apple-system, Roboto, "Segoe UI", Helvetica-Neue, Helvetica, Arial, sans-serif;
116
+ font-family: PayPalOpen-Regular, system-ui, -apple-system, Roboto, "Segoe UI", Helvetica-Neue, Helvetica, Arial, sans-serif;
117
117
  font-size: 14px;
118
118
  text-align: center;
119
119
 
@@ -231,16 +231,16 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
231
231
  },
232
232
 
233
233
  attributes: ({ props }) => {
234
- let fundingSource = "";
235
- if (props.fundingSource) {
236
- fundingSource = `-${props.fundingSource}`;
237
- }
234
+ // avoid title colliding when no fundingSource is set
235
+ const title = props.fundingSource
236
+ ? `${FUNDING_BRAND_LABEL.PAYPAL}-${props.fundingSource}`
237
+ : `${FUNDING_BRAND_LABEL.PAYPAL} Payment Buttons`;
238
238
 
239
239
  return {
240
240
  iframe: {
241
241
  allowpaymentrequest: "allowpaymentrequest",
242
242
  scrolling: "no",
243
- title: `${FUNDING_BRAND_LABEL.PAYPAL}${fundingSource}`,
243
+ title,
244
244
  role: "presentation",
245
245
  },
246
246
  };