Repository navigation
Accessibility: screen-reader labels and touch targets (#8) - #54
Open
tribhuvneshsharma wants to merge 1 commit into
Open
tribhuvneshsharma wants to merge 1 commit into
tribhuvneshsharma wants to merge 1 commit into
Conversation
- Add reusable, accessible Chip component in ui.tsx with accessibilityRole='button', accessibilityLabel, and minimum 44x44 touch targets - Replace navigation chips in rider/index.tsx and driver/index.tsx with accessible Chip - Add accessibilityRole='button', labels, and selected state to vehicle options and star ratings - Add accessibilityRole='switch' to driver online toggle - Add AccessibilityInfo.announceForAccessibility voice announcements for key ride state transitions - Add accessible description to map containers in RideMap.tsx and RideMap.web.tsx
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #8
What this PR does
Improves accessibility across both Rider and Driver apps:
Chipcomponent inmobile/src/components/ui.tsxwithaccessibilityRole="button", proper labels, and guaranteed minimum 44×44pt touch targets (minHeight: 44, minWidth: 44, andhitSlop: 8). Standardized top bar chips (Rides,Log out,Earnings,Vehicle,‹ Back).accessibilityRole="button"and descriptive labels to vehicle options inrider/index.tsxanddriver/vehicle.tsx.accessibilityRole="switch"to the driver online/offline toggle."1 star","2 stars"...) and minimum 44×44pt touch targets.AccessibilityInfo.announceForAccessibilityannouncements for key ride state transitions (searching,driver_assigned,driver_arrived,in_progress,completed,cancelled) and new driver ride offers.Verification
python test_all.py --quickpasses (pytest, tsc typecheck, eslint, jest).