Skip to content
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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
8 changes: 6 additions & 2 deletions src/components/Facility/PatientNotesSlideover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ export default function PatientNotesSlideover(props: PatientNotesProps) {
icon="l-angle-up"
className="tooltip text-lg transition-all delay-150 duration-300 ease-out"
/>
<span className="tooltip-text tooltip-top rotate-[-180deg] text-xs">
<span
className={`tooltip-text tooltip-top ${show && "rotate-[-180deg]"} text-xs`}
>
{t("minimize")}
</span>
</div>
Expand All @@ -173,7 +175,9 @@ export default function PatientNotesSlideover(props: PatientNotesProps) {
icon="l-times"
className="tooltip text-lg transition-all delay-150 duration-300 ease-out"
/>
<span className="tooltip-text tooltip-bottom -translate-x-11 text-xs">
<span
className={`tooltip-text tooltip-${show ? "bottom -translate-x-11" : "top"} text-xs`}
>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{t("close")}
</span>
</div>
Expand Down
Loading