fix(ContentNavigation): prevent toggling disabled parent items#6122
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR adds per-item disabled support to the navigation system. A playground fixture marks the top-level "Theme" navigation entry with Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
commit: |
🔗 Linked issue
N/A (no linked issue)
❓ Type of change
📚 Description
ContentNavigationparent items withchildrenwere still interactive whenlink.disabledwas set, so users could toggle open/closed sections that appeared disabled.This PR fixes that by:
:disabled="!!link.disabled"toAccordionItemfor parent linkslink.disabledis trueThis is a non-breaking bug fix and aligns parent-link behavior with disabled leaf-link behavior.
📝 Checklist