Skip to content

Commit

Permalink
Merge pull request #31810 from tienifr/fix/31203
Browse files Browse the repository at this point in the history
Fix: Blue border appears around `Pressable` when press `Tab`
  • Loading branch information
deetergp authored Nov 28, 2023
2 parents 68156f3 + ba1c546 commit f6f6cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Pressable/GenericPressable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function WebGenericPressable({focusable = true, ...props}: PressableProps, ref:
ref={ref}
// change native accessibility props to web accessibility props
focusable={focusable}
tabIndex={!accessible || !focusable ? -1 : 0}
tabIndex={props.tabIndex ?? (!accessible || !focusable) ? -1 : 0}
role={props.accessibilityRole as Role}
id={props.nativeID}
aria-label={props.accessibilityLabel}
Expand Down

0 comments on commit f6f6cae

Please sign in to comment.