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 styles = useStyles(props.isCompatible);
|
||||||
|
|
||||||
const CardWrapper = props.onShowPluginInfo ? TouchableRipple : View;
|
const CardWrapper = props.onShowPluginInfo ? TouchableRipple : View;
|
||||||
|
const containerIsButton = !!props.onShowPluginInfo;
|
||||||
return (
|
return (
|
||||||
<CardWrapper
|
<CardWrapper
|
||||||
accessibilityRole={props.onShowPluginInfo ? 'button' : null}
|
accessibilityRole={containerIsButton ? 'button' : null}
|
||||||
accessible={true}
|
accessible={containerIsButton}
|
||||||
onPress={props.onShowPluginInfo ? onPress : null}
|
onPress={props.onShowPluginInfo ? onPress : null}
|
||||||
style={styles.cardContainer}
|
style={styles.cardContainer}
|
||||||
>
|
>
|
||||||
|
Reference in New Issue
Block a user