Conversation
…eous focusable surfaces
WalkthroughAdds Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 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 |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/zIndex/ZIndexPortal.tsx (1)
18-19: Good fix for the focusability regression!The addition of
tabIndex={-1}correctly removes these structural portal elements from the keyboard tab order. Browser compatibility is confirmed—this pattern is already used elsewhere in the codebase (Pie.tsx, TooltipBoundingBox.tsx) with existing tests validating the behavior on SVG elements, and the project supports React 16.8+.Optional: Consider making the comment more specific:
- // these g elements should not be tabbable + // These portal g elements are structural containers for z-index ordering and should not be tabbableRecommended follow-up: Add an automated test to verify these portal elements are not focusable via keyboard navigation, preventing future regressions.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/zIndex/ZIndexPortal.tsx(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Build, Test, Pack
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6687 +/- ##
=======================================
Coverage 94.02% 94.02%
=======================================
Files 499 499
Lines 42547 42547
Branches 4873 4873
=======================================
Hits 40004 40004
Misses 2538 2538
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Bundle ReportChanges will increase total bundle size by 138 bytes (0.01%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: recharts/bundle-es6Assets Changed:
view changes for bundle: recharts/bundle-cjsAssets Changed:
view changes for bundle: recharts/bundle-umdAssets Changed:
|
Description
add
tabIndex={-1}to prevent focus on the z-index layers of the chart. Otherwise we add ~6 additional focusable element surfacesRelated Issue
#5988 (comment)
Motivation and Context
caused a regression in what is focusable, remove this
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.