Skip to content

Commit

Permalink
fix: [IOBP-460,IOBP-461,IOBP-463] A11y for list item info components …
Browse files Browse the repository at this point in the history
…into transaction detail screen (#5478)

## Short description
This PR fixes the accessibility for the list item info components,
removing the overwriting of the `accessibilityLabel`.

## List of changes proposed in this pull request
- Removed the overwritten `accessibilityLabel` on the `ListItemInfo`
components

## How to test
- Enable the voiceover
- Go to the wallet home page
- Open the transactions list
- Go into a transaction detail with the voiceover
  • Loading branch information
Hantex9 authored Feb 7, 2024
1 parent 48dd049 commit a49be25
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,13 @@ const WalletTransactionInfoSection = ({
{psp?.businessName && (
<>
<ListItemInfo
accessibilityLabel={I18n.t(
"transaction.details.info.pspName"
)}
label={I18n.t("transaction.details.info.pspName")}
value={psp.businessName}
/>
<Divider />
</>
)}
<ListItemInfo
accessibilityLabel={I18n.t(
"transaction.details.info.dateAndHour"
)}
label={I18n.t("transaction.details.info.dateAndHour")}
value={format(transaction.created, "DD MMMM YYYY, HH:mm:ss")}
/>
Expand All @@ -93,9 +87,9 @@ const WalletTransactionInfoSection = ({
onPress={() =>
clipboardSetStringWithFeedback(transaction.id.toString())
}
accessibilityLabel={I18n.t(
accessibilityLabel={`${I18n.t(
"transaction.details.info.transactionId"
)}
)}: ${transaction.id.toString()}`}
label={I18n.t("transaction.details.info.transactionId")}
value={transaction.id.toString()}
/>
Expand Down

0 comments on commit a49be25

Please sign in to comment.