Repository navigation
Commit cff022c
committed
Only set stateDescription for the unchecked state of non-switch roles
TalkBack already announces the checked state of a checkable node in the
device language. React Native's state strings are translated by Meta's
internal pipeline after import, so a new string would be English-only
for a while. Keep the switch on/off strings, which are already translated
in every locale, and only fill the case TalkBack is silent on: unchecked
checkboxes and radios. Drop the unused state_checked_description.1 parent 6c5b5b4 commit cff022c
3 files changed
Lines changed: 13 additions & 14 deletions
File tree
- packages/react-native/ReactAndroid/src
- main
- java/com/facebook/react/uimanager
- res/views/uimanager/values
- test/java/com/facebook/react/uimanager
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
648 | 651 | | |
649 | 652 | | |
650 | 653 | | |
| |||
653 | 656 | | |
654 | 657 | | |
655 | 658 | | |
656 | | - | |
| 659 | + | |
657 | 660 | | |
658 | 661 | | |
659 | 662 | | |
660 | 663 | | |
| 664 | + | |
| 665 | + | |
661 | 666 | | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
666 | 670 | | |
667 | 671 | | |
668 | 672 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 99 | | |
104 | 100 | | |
105 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
404 | | - | |
| 403 | + | |
405 | 404 | | |
406 | 405 | | |
407 | 406 | | |
| |||
0 commit comments