Skip to content

Commit

Permalink
fix: allow content to be accessible #619
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Sep 2, 2021
1 parent dcf89a7 commit f1baf0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/components/bottomSheet/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1554,12 +1554,7 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
bottomInset={bottomInset}
detached={detached}
>
<Animated.View
accessible={true}
accessibilityRole="adjustable"
accessibilityLabel="Bottom Sheet"
style={containerStyle}
>
<Animated.View style={containerStyle}>
<BottomSheetBackgroundContainer
key="BottomSheetBackgroundContainer"
animatedIndex={animatedIndex}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ const BottomSheetBackgroundComponent = ({
pointerEvents,
style,
}: BottomSheetBackgroundProps) => (
<View pointerEvents={pointerEvents} style={[styles.container, style]} />
<View
pointerEvents={pointerEvents}
accessible={true}
accessibilityRole="adjustable"
accessibilityLabel="Bottom Sheet"
style={[styles.container, style]}
/>
);

const BottomSheetBackground = memo(BottomSheetBackgroundComponent);
Expand Down

0 comments on commit f1baf0e

Please sign in to comment.