Skip to content

Commit f6f6cae

Browse files
authored
Merge pull request #31810 from tienifr/fix/31203
Fix: Blue border appears around `Pressable` when press `Tab`
2 parents 68156f3 + ba1c546 commit f6f6cae

File tree

1 file changed

+1
-1
lines changed
  • src/components/Pressable/GenericPressable

1 file changed

+1
-1
lines changed

src/components/Pressable/GenericPressable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function WebGenericPressable({focusable = true, ...props}: PressableProps, ref:
1313
ref={ref}
1414
// change native accessibility props to web accessibility props
1515
focusable={focusable}
16-
tabIndex={!accessible || !focusable ? -1 : 0}
16+
tabIndex={props.tabIndex ?? (!accessible || !focusable) ? -1 : 0}
1717
role={props.accessibilityRole as Role}
1818
id={props.nativeID}
1919
aria-label={props.accessibilityLabel}

0 commit comments

Comments
 (0)