Fix anchor accessibility warnings in consent components#10495
Fix anchor accessibility warnings in consent components#10495MovinduJay wants to merge 2 commits into
Conversation
|
Warning Review limit reached
Next review available in: 48 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.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAnchor elements rendered as example/placeholder links in three components now include an ChangesAccessible anchor labels
Related issues: Suggested labels: accessibility, react-doctor Suggested reviewers: none 🐰 A hop, a click, an anchor bare, Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error)
✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Purpose
Fixes the React Doctor
anchor-has-contentaccessibility warnings in consent-related components.The affected anchor elements are used inside translated consent description content through
<Trans />. Since these anchors do not have direct JSX children, this PR adds meaningfularia-labelvalues so the anchors have accessible names without changing the visible UI or existing translation behavior.No visual UI changes are introduced.
Related Issues
aria-label, or ... (3 occurrences) product-is#27871Related PRs
Checklist
Security checks
Developer Checklist (Mandatory)
product-isissue to track any behavioral change or migration impact.Testing
git diff --check.--quietfor the modified files.Note: Full
pnpm lintfails on the current branch due to existing unrelated lint warnings/errors in other modules.