fix(navigation): rotate navbar dropdown chevron when menu is open - #5656
fix(navigation): rotate navbar dropdown chevron when menu is open#5656Alwaysgaurav1 wants to merge 2 commits into
Conversation
✅ Deploy Preview for asyncapi-website ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughChangesDropdown caret interaction
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ 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 |
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-5656--asyncapi-website.netlify.app/ |
|



Description
Fixes an issue where the navigation dropdown chevron arrow did not remain rotated 180° when hovering or navigating inside the open dropdown flyout menu.
Changes Made
components/icons/NavItemDropdown.tsxto accept aclassNameprop and removed hardcodedgroup-hover:rotate-180on the inner SVG.components/navigation/NavItem.tsxto applyisOpen ? 'rotate-180' : 'group-hover:rotate-180'on the chevron container to prevent 360° double-rotation bugs.Summary by CodeRabbit