@@ -3,7 +3,6 @@ import React, {useImperativeHandle, useState} from 'react';
33import type { ViewStyle } from 'react-native' ;
44import { View } from 'react-native' ;
55import { useMemoizedLazyExpensifyIcons } from '@hooks/useLazyAsset' ;
6- import useLocalize from '@hooks/useLocalize' ;
76import useThemeStyles from '@hooks/useThemeStyles' ;
87import colors from '@styles/theme/colors' ;
98import variables from '@styles/variables' ;
@@ -42,7 +41,6 @@ const MIN_AMOUNT_OF_STEPS = 2;
4241
4342function 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