fix(navbar): add missing tooltip to search icon#38527
fix(navbar): add missing tooltip to search icon#38527iamayushkarma wants to merge 3 commits intoRocketChat:developfrom
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
WalkthroughAdded accessibility attributes to the navbar search addon icon: Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ 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)
✏️ Tip: You can disable this entire section by setting 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: 1
🤖 Fix all issues with AI agents
In `@apps/meteor/client/navbar/NavBarSearch/NavBarSearch.tsx`:
- Line 89: The tooltip currently always shows t('Search_rooms') even when
isDirty switches the Icon to 'cross'; update the Icon's title prop in
NavBarSearch.tsx to reflect the current action by using a conditional based on
isDirty (e.g., title={isDirty ? t('Clear') : t('Search_rooms')}) so the tooltip
matches the cross (clear) vs magnifier (search) state, keeping the existing
onClick handler handleClearText as appropriate.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
apps/meteor/client/navbar/NavBarSearch/NavBarSearch.tsx
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx,js}
📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation
Files:
apps/meteor/client/navbar/NavBarSearch/NavBarSearch.tsx
⏰ 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: cubic · AI code reviewer
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
|
Added aria-label for accessibility improvement. |
Description
Tooltip was missing on navbar search magnifier icon.
Added title attribute to display tooltip on hover.
Issue
Fixes #38480
Before
before-tooltip.mp4
After
after-tooltip.mp4
Summary by CodeRabbit