-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Environment
Run the following in your terminal and copy the results here.
-
npx react-native --version:
4.13.0 -
npx react-native run-windows --info:
System:
OS: Windows 10 10.0.19042
CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
Memory: 2.64 GB / 15.80 GB
Binaries:
Node: 10.15.0 - C:\Program Files\nodejs\node.EXE
npm: 6.13.6 - C:\Repos\pay.pidl.sdk\tests\apps\pidl-react-native-windows\node_modules.bin\npm.CMD
npmPackages:
react: 16.13.1 => 16.13.1
react-native: 0.63.2 => 0.63.2
react-native-windows: 0.63.3 => 0.63.3
Installed UWP SDKs:
10.0.17763.0
10.0.18362.0
What device(s) are you targeting? Choose any from Desktop, Xbox, Hololens)
- Target Device(s): Desktop, Xbox
Which version of Visual Studio are you using? Specify Visual Studio 2017 or Visual Studio 2019
- Visual Studio Version: 2019
Which build configuration are you running? Choose from Debug, DebugBundle, Release, ReleaseBundle
- Build Configuration: Debug/Release
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
- Create a View
- Create a Text element inside the View with the text "Test Text"
- Set
accessibilityLabel={"Test Text"}on the View - Set
accessibilityRole={"button"}on the View
4: Setstyle={{ borderRadius: 8 }}on the View
Expected Results
With narrator on, View should be focusable. When focused, narrator should read the accessibilityLabel out loud as "Test Text"
Actual Results
The view is focusable, but accessibility focus instead focuses the entire app. If accessibilityRole is not set on the View , the View becomes focusable by the narrator but is read as a custom role. If borderRadius is removed, the element becomes focusable by the narrator but will the lack the desired border radius style.