Skip to content

Commit

Permalink
Merge pull request #2046 from graphcommerce-org/fix/GCOM-1186
Browse files Browse the repository at this point in the history
Decrease the fontSize for the payment button in the checkout to ensure the text fits within the button (GCOM-1186)
  • Loading branch information
paales authored Sep 25, 2023
2 parents a0b2118 + 6dd6e6e commit 21de35a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-garlics-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/magento-cart-payment-method': patch
---

Remove the selected payment method title from the Place order button so that the text always fits
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ function PaymentMethodButtonRenderer(
loading={buttonState.isSubmitting || (buttonState.isSubmitSuccessful && !error)}
>
{buttonProps.children}
{selectedMethod?.title && (
<>
{' '}
(<em>{selectedMethod?.title}</em>)
</>
)}
</LinkOrButton>
) : (
<PaymentButton
Expand Down

0 comments on commit 21de35a

Please sign in to comment.