Skip to content

Commit

Permalink
iOS: Fix icon before "notebooks" header is focusable
Browse files Browse the repository at this point in the history
  • Loading branch information
personalizedrefrigerator committed Dec 23, 2024
1 parent 603f905 commit 3b2daf3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/app-mobile/components/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -62,6 +63,7 @@ const Icon: React.FC<Props> = props => {
style={props.style}
aria-hidden={accessibilityHidden}
importantForAccessibility={importantForAccessibility}
accessibilityElementsHidden={accessibilityHidden}
>
{nameSuffix}
</Text>
Expand Down

0 comments on commit 3b2daf3

Please sign in to comment.