You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
iOS: Accessibility: Fix plugins can't be installed using VoiceOver (#11931)
This commit is contained in:
@ -81,10 +81,11 @@ const PluginBox: React.FC<Props> = props => {
|
||||
const styles = useStyles(props.isCompatible);
|
||||
|
||||
const CardWrapper = props.onShowPluginInfo ? TouchableRipple : View;
|
||||
const containerIsButton = !!props.onShowPluginInfo;
|
||||
return (
|
||||
<CardWrapper
|
||||
accessibilityRole={props.onShowPluginInfo ? 'button' : null}
|
||||
accessible={true}
|
||||
accessibilityRole={containerIsButton ? 'button' : null}
|
||||
accessible={containerIsButton}
|
||||
onPress={props.onShowPluginInfo ? onPress : null}
|
||||
style={styles.cardContainer}
|
||||
>
|
||||
|
Reference in New Issue
Block a user