Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: [IOBP-1243,IOBP-1244,IOBP-1241] a11y improvements on payment method details card preview #6779

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
14 changes: 7 additions & 7 deletions ts/features/payments/common/components/PaymentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ const PaymentCard = (props: PaymentCardComponentProps) => {
const renderBankLogo = () => {
if (props.holderEmail) {
return (
<PayPalLogo
testID="paymentCardPayPalLogoTestId"
accessible={true}
accessibilityLabel="PayPal"
height={48}
width={113}
/>
<View accessibilityLabel="PayPal">
<PayPalLogo
testID="paymentCardPayPalLogoTestId"
height={48}
width={113}
/>
</View>
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const PaymentsMethodDetailsBaseScreenComponent = ({
scrollEventThrottle={8}
snapToOffsets={[0, titleHeight]}
snapToEnd={false}
importantForAccessibility="no"
contentContainerStyle={{
flexGrow: 1,
paddingBottom: 48,
Expand All @@ -104,7 +105,9 @@ const PaymentsMethodDetailsBaseScreenComponent = ({
/>
<View style={[styles.blueHeader, { backgroundColor: blueHeaderColor }]}>
<View style={styles.cardContainer} onLayout={getTitleHeight}>
<PaymentCard {...card} />
<View accessible accessibilityRole="summary">
<PaymentCard {...card} />
</View>
</View>
</View>
<VSpacer size={24} />
Expand Down
Loading