-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI: Improve TransportModeChip text contrast accessibility (#611)
### TL;DR Enhanced color contrast handling for transport mode chips to ensure better accessibility ### What changed? - Added contrast ratio checking for transport mode chip text colors - Introduced constants for WCAG AA contrast requirements - Enhanced `getForegroundColor` function to accept an optional foreground color parameter - Improved text color handling in `TransportModeChip` component ### How to test? 1. Navigate to the trip planner screen 2. Verify that transport mode chip text remains readable when selected 3. Check text contrast against different transport mode background colors 4. Test with both light and dark themes ### Why make this change? To improve accessibility by ensuring text remains readable across all transport mode chips, regardless of their background color. This change follows WCAG AA guidelines for text contrast ratios, making the app more accessible to users with visual impairments.
- Loading branch information
1 parent
5018501
commit 3941394
Showing
2 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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 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