fix(a11y): raise navigation text contrast - #2024
Conversation
|
🤖 Review skipped: Repository rate limit exceeded. Free accounts are limited to 2 reviews per 4 hours per repository. Upgrade to a paid plan for unlimited reviews. |
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Warning Review limit reached
Next review available in: 14 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoFix a11y: raise navigation text contrast to WCAG AA
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Mobile PreviewScan to open on device:
To test on device:
|
|
Storybook previews for This comment updates automatically on each PR push. |
Code Review by Qodo
Context used✅ Compliance rules (platform):
174 rules✅ Skills:
fix-provider, write-tests, cloudflare 1.
|
|
🤖 Review skipped: Repository rate limit exceeded. Free accounts are limited to 2 reviews per 4 hours per repository. Upgrade to a paid plan for unlimited reviews. |
|
Review follow-up: fixed the exact class-token assertion in b48f34d and resolved the inline thread. I am keeping the optional contrast helpers platform-local: sharing them across the web/mobile package boundary would require a test-only public package export, which conflicts with the repository rule against production exports solely for testability; Qodo also cites the team precedent preferring platform copies for this case. The focused 12 tests, Biome, and web typecheck pass after the change. |
Summary
The promoted token measures 5.41:1 on the iOS tab background and 5.79:1 on the web header background. This follows the WCAG 2.2 minimum contrast guidance.
Validation
pnpm exec vitest run --project unit --project mobile 'packages/mobile/app/(tabs)/_layout.test.tsx' packages/web/src/components/AppHeader.test.tsxpnpm test -- --run(836 files passed, 2 skipped; 13,734 tests passed, 21 skipped)pnpm --dir packages/mobile typecheckpnpm --dir packages/web typecheckpnpm tsc --noEmitpnpm tsc --noEmit(packages/server)pnpm --dir packages/web buildpnpm exec biome check . --max-diagnostics=500Fixes #1990
Summary by cubic
Increase navigation text contrast on iOS tabs and the web header to meet WCAG 2.2 AA (≥4.5:1). Fixes #1990 with token updates and stronger tests to prevent regressions.
colors.textSecondary(wascolors.textTertiary) for AA contrast.text-muted(wastext-subtle)..text-mutedclass on web; current ratios are 5.41:1 (iOS tabs) and 5.79:1 (web header).Written for commit b48f34d. Summary will update on new commits.