Skip to content

Commit

Permalink
Added different accessibility label text to avoid breaking tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Guest - Work authored and Matthew Guest - Work committed Dec 18, 2024
1 parent ce67200 commit acb8d1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const ChildTemplate: FC<ChildTemplateProps> = ({
transitionHeader(event.nativeEvent.contentOffset.y)
}}
{...scrollViewProps}>
<View accessible accessibilityLabel={title} onLayout={getTransitionHeaderHeight}>
<View accessible accessibilityLabel={titleA11y} onLayout={getTransitionHeaderHeight}>
{!screenReaderEnabled ? <TextView {...subtitleProps}>{title}</TextView> : null}
</View>
<WaygateWrapper>{children}</WaygateWrapper>
Expand Down

0 comments on commit acb8d1a

Please sign in to comment.