-
Notifications
You must be signed in to change notification settings - Fork 3.9k
17016 migrate switch #18512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
17016 migrate switch #18512
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
fe4e915
migrate switch to PressableWithFeedback, add accessibility props
robertKozik a2f35e1
fix warnings which come from OpacityView
robertKozik d5d38f5
remove dimming from switch component
robertKozik d6238f2
add required accessibility labels for all switches
robertKozik fd4e931
Add remaining accessibilityLabel for switch in TimezoneInitialPage.js
robertKozik 5bf6f9a
fix error when GenericPressable tries to call onPress when disabled
robertKozik cb7eef6
press dim value for switch is set to 0.8
robertKozik 611e44d
trigger the same callback on press and longPress for switch
robertKozik 8e18d04
Merge remote-tracking branch 'upstream/main' into 17016_migrate_switch
robertKozik b3b53c7
Merge branch 'main' into 17016_migrate_switch
robertKozik ccbe9a9
disable dimming of PressableWithFeedback when is disabled
robertKozik b2b4d0d
run prettier on changed files
robertKozik 273629a
Merge branch 'main' into 17016_migrate_switch
robertKozik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accessibilityLabelis declared as Required but it's value is undefined as it not passed from components usingSwitch.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filled, good catch
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertKozik
accessibilityLabelshould be added inTimezoneInitialPageas well.App/src/pages/settings/Profile/TimezoneInitialPage.js
Lines 61 to 64 in e52c1e2