From f92a9af71d3b898df66f3612aa9db39a267f1c0f Mon Sep 17 00:00:00 2001 From: nicholas Date: Wed, 10 Jul 2024 12:01:34 +0200 Subject: [PATCH 01/10] Installments component shows a translatable label above its fields --- .../components/Installments/Installments.tsx | 75 +++++++++++-------- .../ConsentCheckbox/ConsentCheckbox.tsx | 9 +-- .../internal/FormFields/Field/Field.tsx | 7 +- 3 files changed, 50 insertions(+), 41 deletions(-) diff --git a/packages/lib/src/components/Card/components/CardInput/components/Installments/Installments.tsx b/packages/lib/src/components/Card/components/CardInput/components/Installments/Installments.tsx index e797cbf873..e4cf91c63d 100644 --- a/packages/lib/src/components/Card/components/CardInput/components/Installments/Installments.tsx +++ b/packages/lib/src/components/Card/components/CardInput/components/Installments/Installments.tsx @@ -7,6 +7,7 @@ import Fieldset from '../../../../../internal/FormFields/Fieldset/Fieldset'; import RadioGroup from '../../../../../internal/FormFields/RadioGroup'; import styles from '../../CardInput.module.scss'; import Select from '../../../../../internal/FormFields/Select'; +import { alternativeLabelContent } from '../IframeLabelAlternative'; export interface InstallmentsObj { value: number; @@ -80,38 +81,47 @@ function Installments(props: InstallmentsProps) { if (hasRadioButtonUI) { return (
-
- - - - + +
+
); } @@ -121,9 +131,10 @@ function Installments(props: InstallmentsProps) { = props => { return useLabelElement ? ( // if we are NOT dealing with the label for a securedField... we can give it a `for` attribute -