Skip to content

Commit

Permalink
Fixes padding for payment method focus state (#1370)
Browse files Browse the repository at this point in the history
* fixes padding for payment method focus state

* adds more semantic css
  • Loading branch information
m1aw authored Nov 24, 2021
1 parent 3db67ba commit f8df759
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
position: relative;
transition: background .1s ease-out;
width: 100%;

.adyen-checkout__payment-method__header__title {
padding: $spacing-none;
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@
justify-content: space-between;
font-weight: 400;
font-size: $font-size-medium;
padding: 16px;
padding-left: 48px;
$payment-button-padding: $spacing-xsmall;
padding: $spacing-medium - $payment-button-padding;
padding-left: $spacing-xxlarge - $payment-button-padding;
position: relative;
transition: background 0.1s ease-out;
width: 100%;

[dir='rtl'] & {
padding: 16px;
padding-right: 48px;
padding: $spacing-medium - $payment-button-padding;
padding-right: $spacing-xxlarge - $payment-button-padding;
}

.adyen-checkout__payment-method--standalone & {
Expand All @@ -81,7 +82,7 @@
border: none;
background: none;
cursor: pointer;
padding: 0;
padding: $spacing-xsmall;
color: $color-black;
font-size: 1em;
font-weight: 400;
Expand Down

0 comments on commit f8df759

Please sign in to comment.