Skip to content

Commit

Permalink
bug/9269-Chika-NonActionableBoxesFlaggedAsInteractiveWithVoiceControl (
Browse files Browse the repository at this point in the history
  • Loading branch information
cadibemma authored Sep 18, 2024
1 parent 5e2750a commit 1f3d2a9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VAMobile/src/components/BaseListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ const BaseListItem: FC<BaseListItemProps> = (props) => {
onPressIn: _onPressIn,
onPressOut: _onPressOut,
accessible: true,
accessibilityRole,
disabled: decorator === ButtonDecoratorType.RadioDisabled,
}

Expand All @@ -258,6 +257,7 @@ const BaseListItem: FC<BaseListItemProps> = (props) => {
...a11yValueProp(a11yValue ? { text: a11yValue } : {}),
accessibilityState: a11yState ? a11yState : {},
accessibilityLabel: testId,
accessibilityRole: onPress ? accessibilityRole : 'text',
}

if (isSwitchRow && decoratorProps) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ function DisabilityRatingsScreen() {
backgroundColor={'list'}
borderStyle="solid"
borderColor="primary"
accessible={true}>
accessible={true}
accessibilityRole={'text'}>
<Box mx={theme.dimensions.gutter} my={theme.dimensions.buttonPadding} flexDirection="column" accessible={false}>
{percentageText && (
<TextView variant={'MobileBodyBold'} testID={percentageText} accessible={false}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ function DetailsTextSections({
borderTopColor={'prescriptionDivider'}
pt={standardMarginBetween}>
<Box {...containerProps}>
<Box accessible={hasRightText ? true : false}>
<Box accessible={hasRightText ? true : false} accessibilityRole={'text'}>
{getTextElements(leftSectionTitle, leftSectionValue, leftSectionTitleLabel, leftSectionValueLabel)}
</Box>
{hasRightText && (
<Box alignItems="flex-end" accessible={true}>
<Box alignItems="flex-end" accessible={true} accessibilityRole={'text'}>
{getTextElements(rightSectionTitle, rightSectionValue, rightSectionTitleLabel, rightSectionValueLabel)}
</Box>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function NoInboxMessages() {
{t('secureMessaging.inbox.noMessages.title')}
</TextView>
</Box>
<Box accessible={true}>
<Box accessible={true} accessibilityRole={'text'}>
<TextView variant="MobileBody" textAlign="center" my={theme.dimensions.standardMarginBetween}>
{t('secureMessaging.inbox.noMessages.body')}
</TextView>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function DirectDepositScreen({ navigation }: DirectDepositScreenProps) {
</TextView>
</Box>
<DefaultList items={getButtonTextList()} title={t('directDeposit.information')} />
<Box mx={gutter} my={theme.paragraphSpacing.spacing20FontSize} accessible={true}>
<Box mx={gutter} my={theme.paragraphSpacing.spacing20FontSize} accessible={true} accessibilityRole={'text'}>
<TextView>
<TextView variant="MobileBodyBold">{t('directDeposit.bankFraudNote') + ' '}</TextView>
<TextView variant="MobileBody">{t('directDeposit.bankFraudText')}</TextView>
Expand Down

0 comments on commit 1f3d2a9

Please sign in to comment.