Redo web lightbox, add animations and keyboard a11y (#9481)

* redo web lightbox, add animations

* add rect-avi to shell

* fix lingui msgs
This commit is contained in:
Samuel Newman
2026-01-28 20:13:52 +02:00
committed by GitHub
parent fd49349b71
commit d45a2c832d
5 changed files with 259 additions and 181 deletions
+4
View File
@@ -409,3 +409,7 @@ export function Handle({
export function Close() {
return null
}
export function Backdrop() {
return null
}
+4 -4
View File
@@ -3,8 +3,8 @@ import {
FlatList,
type FlatListProps,
type GestureResponderEvent,
Pressable,
type StyleProp,
TouchableWithoutFeedback,
View,
type ViewStyle,
} from 'react-native'
@@ -113,7 +113,7 @@ export function Outer({
<Portal>
<Context.Provider value={context}>
<RemoveScrollBar />
<TouchableWithoutFeedback
<Pressable
accessibilityHint={undefined}
accessibilityLabel={_(msg`Close active dialog`)}
onPress={handleBackgroundPress}>
@@ -146,7 +146,7 @@ export function Outer({
{children}
</View>
</View>
</TouchableWithoutFeedback>
</Pressable>
</Context.Provider>
</Portal>
)}
@@ -304,7 +304,7 @@ export function Handle() {
return null
}
function Backdrop() {
export function Backdrop() {
const t = useTheme()
const {reduceMotionEnabled} = useA11y()
return (