dillon1000/react
Commit
Browse files React Events: add onFocusVisibleChange to Focus (#15516)
Called when focus visibility changes. Focus is only considered visible if a focus event occurs after keyboard navigation. This provides a way for people to provide visual focus styles for keyboard accessible UIs without those styles appearing if focus is triggered by mouse, touch, pen.
Changed paths4 files
First-parent comparisonpackages/react-events/docs/Focus.md ModifiedM packages/react-events/src/Focus.js ModifiedM packages/react-events/src/__tests__/Focus-test.internal.js ModifiedM packages/react-events/src/__tests__/Press-test.internal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…