Skip to content

Commit

Permalink
fix(payment): fix Adyen form label styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Aug 6, 2021
1 parent 28547dd commit b4f48c6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/components/Adyen/Adyen.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,6 @@

.adyen {
margin-bottom: 24px;

:global {
.adyen-checkout__label__text {
color: variables.$white;
font-family: var(--body-font-family);
font-size: 16px;
line-height: 18px;
}

.adyen-checkout__error-text {
font-family: var(--body-font-family);
font-size: 14px;
}
}
}

.container {
Expand Down
1 change: 1 addition & 0 deletions src/components/Adyen/Adyen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Button from '../Button/Button';
import FormFeedback from '../FormFeedback/FormFeedback';

import styles from './Adyen.module.scss';
import './AdyenForm.scss';

type Props = {
onChange?: (data: AdyenEventData) => void;
Expand Down
16 changes: 16 additions & 0 deletions src/components/Adyen/AdyenForm.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@use '../../styles/variables';
@use '../../styles/theme';

.adyen-checkout__card-input .adyen-checkout__card__form {
.adyen-checkout__label__text {
color: variables.$white;
font-family: var(--body-font-family);
font-size: 16px;
line-height: 18px;
}

.adyen-checkout__error-text {
font-family: var(--body-font-family);
font-size: 14px;
}
}

0 comments on commit b4f48c6

Please sign in to comment.