Skip to content

Commit 6463086

Browse files
authored
Merge pull request Expensify#84824 from Expensify/claude-hideWizardFromAssistiveTech
Hide InteractiveStepSubHeader from assistive technology
2 parents 8f773d3 + 8c9111d commit 6463086

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/components/InteractiveStepSubHeader.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import React, {useImperativeHandle, useState} from 'react';
33
import type {ViewStyle} from 'react-native';
44
import {View} from 'react-native';
55
import {useMemoizedLazyExpensifyIcons} from '@hooks/useLazyAsset';
6-
import useLocalize from '@hooks/useLocalize';
76
import useThemeStyles from '@hooks/useThemeStyles';
87
import colors from '@styles/theme/colors';
98
import variables from '@styles/variables';
@@ -42,7 +41,6 @@ const MIN_AMOUNT_OF_STEPS = 2;
4241

4342
function InteractiveStepSubHeader({stepNames, startStepIndex = 0, onStepSelected, ref}: InteractiveStepSubHeaderProps) {
4443
const styles = useThemeStyles();
45-
const {translate} = useLocalize();
4644
const containerWidthStyle: ViewStyle = stepNames.length < MIN_AMOUNT_FOR_EXPANDING ? styles.mnw60 : styles.mnw100;
4745

4846
if (stepNames.length < MIN_AMOUNT_OF_STEPS) {
@@ -72,8 +70,8 @@ function InteractiveStepSubHeader({stepNames, startStepIndex = 0, onStepSelected
7270
return (
7371
<View
7472
style={[styles.interactiveStepHeaderContainer, containerWidthStyle]}
75-
focusable
76-
accessibilityLabel={translate('stepCounter', {step: currentStep + 1, total: stepNames.length})}
73+
accessible={false}
74+
aria-hidden
7775
>
7876
{stepNames.map((stepName, index) => {
7977
const isCompletedStep = currentStep > index;

0 commit comments

Comments
 (0)