Skip to content

Commit

Permalink
feat(payment): PAYPAL-2195 added classes for applepay button
Browse files Browse the repository at this point in the history
  • Loading branch information
andriiVitvitskyi1990 committed Apr 13, 2023
1 parent 066e3e1 commit 5fc9b67
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Draft
- Removed accelerated checkout integration [#2341](https://github.com/bigcommerce/cornerstone/pull/2341)
- Added css classes for ApplePay Button [[#2344]](https://github.com/bigcommerce/cornerstone/pull/2344)

## 6.10.0 (03-23-2023)
- A bug with the display of the product quantity on the PDP [#2340](https://github.com/bigcommerce/cornerstone/pull/2340)
Expand Down
26 changes: 13 additions & 13 deletions assets/scss/components/stencil/applePay/_applePay.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.apple-pay-checkout-button {
background-color: $applePay-black;
background-image: -webkit-named-image(apple-pay-logo-white);
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: 100% 60%;
Expand All @@ -10,19 +12,17 @@
min-width: 90px;
padding: spacing("single");
width: 160px;
@if stencilString("applePay-button") == "white" {
background-color: $applePay-white;
background-image: -webkit-named-image(apple-pay-logo-black);
}
@else if stencilString("applePay-button") == "white-border" {
background-color: $applePay-white;
background-image: -webkit-named-image(apple-pay-logo-black);
border: 0.5px solid $applePay-black;
}
@else {
background-color: $applePay-black;
background-image: -webkit-named-image(apple-pay-logo-white);
}
}

.apple-pay-checkout-button--white {
background-color: $applePay-white;
background-image: -webkit-named-image(apple-pay-logo-black);
}

.apple-pay-checkout-button--white-border {
background-color: $applePay-white;
background-image: -webkit-named-image(apple-pay-logo-black);
border: 0.5px solid $applePay-black;
}

.apple-pay-supported {
Expand Down

0 comments on commit 5fc9b67

Please sign in to comment.