VoiceOver: Focus Returns to First Element Instead of Trigger Button After Closing Modal on iOS
まだ誰も着手していません。
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.3k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 4
説明
Description
When VoiceOver is enabled on an iOS device, closing a modal by clicking the cancel button causes the focus to shift back to the first element of the screen instead of the button that triggered the modal. This issue negatively impacts the user experience for visually impaired users who rely on VoiceOver for navigation.
Steps to reproduce
- Ensure VoiceOver is enabled on the iOS device.
- Open the React Native application.
- Navigate to the screen that includes a header, body, and a button at the bottom of the screen.
- Click the button at the bottom of the screen to open the modal.
- Within the modal, click the cancel button to close the modal.
- Observe the focus behavior once the modal is closed.
React Native Version
0.74
Affected Platforms
Runtime - iOS
Output of npx react-native info
System:
OS: macOS 13.6.5
CPU: (8) arm64 Apple M1
Memory: 121.14 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.7.1 - /opt/homebrew/bin/node
Yarn: 1.22.22 - ~/Desktop/project/sqh.projectorange.reactnative/node_modules/.bin/yarn
npm: 10.5.0 - /opt/homebrew/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.15 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.15 => 0.71.8
react-native-macos: Not Found
Stacktrace or Logs
Since this issue is related to accessibility focus behavior, It will not generate any traditional error logs or stack traces.
Reproducer
https://github.com/akashsquare/accessibility_poc
https://snack.expo.dev/@akshay-sqh/accessibility-poc
Screenshots and Videos
https://github.com/facebook/react-native/assets/58284589/4002cdda-27f8-4a37-9bd6-686c27ac47ce
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、VoiceOverを有効にしたiOS上のReact Native 0.74で、リンクされているreproducer accessibility_pocを実行し、続けて記載されているmodalとcancel-buttonの手順に従ってください。modalを閉じた後に観測されたfocusの移動先を確認し、期待される動作と比較してください。focusは、それを開いたbuttonに戻るはずです。対象となるsource fileやtestは指定されていないため、関連するmodalとaccessibility-focusの処理を見つけることも調査の一部です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ios, react-native
- 領域
- accessibility, mobile
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100