-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Update tooltip position and rotation in Discussion Notes panel #8938
base: develop
Are you sure you want to change the base?
fix: Update tooltip position and rotation in Discussion Notes panel #8938
Conversation
✅ Deploy Preview for care-ohc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think rather than updating the tooltip class for minimize, you should update the parent element to not be rotated. The rotation should only be added to the CareIcon if at all needed, or you can just change the icon
to l-angle-down
conditionally.
<span | ||
className={`tooltip-text tooltip-${show ? "bottom -translate-x-16" : "top"} text-xs`} | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use cn or classNames utils to add conditional classes, string interpolation can be hard to read sometimes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@khavinshankar ,Done.
<span | ||
className={`tooltip-text tooltip-${show ? "bottom -translate-x-11" : "top"} text-xs`} | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@khavinshankar ,Done.
LGTM |
@coderabbitai full review |
✅ Actions performedFull review triggered. |
WalkthroughThe changes in Changes
Assessment against linked issues
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (3)src/components/Facility/PatientNotesSlideover.tsx (3)
The icon toggle between "l-angle-down" and "l-angle-up" based on the
The tooltip positioning has been improved by:
The close tooltip implementation follows the same pattern as the minimize tooltip, ensuring consistent behavior and visibility in both expanded and minimized states. Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Proposed Changes
show
state.@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit