-
Notifications
You must be signed in to change notification settings - Fork 4
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
Navbar Tooltip #200
Navbar Tooltip #200
Conversation
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.
Overall it's all okay and you did a good work on implementing this with framer motion too.
There is a little strange movement when you remove slowly the hover from the image going between the image and the tooltip (see video below), would like to have this fixed.
- 1. You could try to increment the timeout timer a little bit or for me it's better to add some margin on top of the tooltip (if I am not mistaken it should catch the hover on the blank space of the margin).
Recording.2024-07-18.185239.mp4
- 2. Visually I think that can be better to lower a little bit the text size (use a value with rem, it will resize correctly with all the window)
- 3. May try to add flex to parent of the clickable text and add gap to remove padding from the children.
- 4. Visually the figma design have a little bit more spacing on left/right of the tooltip
- 5. The sun/moon icon on the design seems to have more space than the text, maybe increase top space
- 6. I don't see the shadow on the right of the tooltip like the one on figma, also have you tried how it looks to have the tooltip full white/same background-color that have on design?
- 7. Use
.tsx
as extension - 8. My bad for not having a global prettier file, I sent you the prettier file in DM, could you please add it on this branch and format the file you changed? This will revert the changes that he found about single quotes changed to double.
Tip for the future: it's better to use <Link>Any name</Link>
when there will be a clickable div that will move to another route.
In this case Sign out will not move us to another route so it's fine, but we don't support Friends for now so you can comment that part or remove it.
Overall it works as expected but will be great with more adjustments
Added tooltip component