1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

iOS: Fix icon before "notebooks" header is focusable

This commit is contained in:
Henry Heino 2024-12-23 11:43:11 -08:00
parent 603f905877
commit 3b2daf3842

View File

@ -34,8 +34,9 @@ const Icon: React.FC<Props> = props => {
const importantForAccessibility = accessibilityHidden ? 'no-hide-descendants' : 'yes';
const sharedProps = {
importantForAccessibility,
'aria-hidden': accessibilityHidden,
importantForAccessibility, // Android
accessibilityElementsHidden: accessibilityHidden, // iOS
'aria-hidden': accessibilityHidden, // Web
accessibilityLabel: props.accessibilityLabel,
style: props.style,
allowFontScaling: props.allowFontScaling,
@ -62,6 +63,7 @@ const Icon: React.FC<Props> = props => {
style={props.style}
aria-hidden={accessibilityHidden}
importantForAccessibility={importantForAccessibility}
accessibilityElementsHidden={accessibilityHidden}
>
{nameSuffix}
</Text>