-
-
Notifications
You must be signed in to change notification settings - Fork 411
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(collective-page): add hover tooltip to collective names displayed in hero header #6678
fix(collective-page): add hover tooltip to collective names displayed in hero header #6678
Conversation
@simonv3 is attempting to deploy a commit to the Open Collective Team on Vercel. A member of the Team first needs to authorize it. |
This pull request is being automatically deployed with Vercel (learn more). opencollective-styleguide – ./🔍 Inspect: https://vercel.com/opencollective/opencollective-styleguide/9BsCE5KNmpik3gk9aP8wnaYJtHU7 opencollective-frontend – ./🔍 Inspect: https://vercel.com/opencollective/opencollective-frontend/P8CfdZgriADvYki6tWnQ6tMyaxXB |
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.
e00d35d
to
269f6c8
Compare
269f6c8
to
7738ffd
Compare
7738ffd
to
02ea12e
Compare
Wanted to set-up a unit test for the Hero component that would have caught the above errors, but it looks like there's some issues with dynamicImports and Jest (eg vercel/next.js#24566). Fixing that feels like it's beyond the scope of this? |
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.
@simonv3 : Thanks much for the changes and sorry for taking time on this. Some of our core members are on vacation so we are a bit short staffed.
Now I tested this PR and it seems that the tool-tip is appearing twice. Think there is two tool tips, one which is the default HTML tool-tip and the one you added. We need only one tool-tip; the user should ideally see the one you added and not the default tool-tip. 😉
Yes, I don't think we have to do that here, maybe we can wait a bit as there's a fix for this in @Betree : WDYT? |
Yes, having a test in the
|
Hey all, I'm sorry about the slow response - work picked up again and I likely won't have the time to get back to this. |
No worries; thanks for your work. I'll complete the remaining part of this. 😉 |
… in hero header adds a component that shows a tooltip and truncates the name of a collective if its more than x amount of characters, used to prevent collective names from showing as too long in the header of the hero page to do with opencollective#4495
02ea12e
to
bad2b61
Compare
cc368c5
to
38e8e7e
Compare
@Betree : I've corrected the double tooltip problem I mentioned before; #6678 (review). Therefore I think this is all good to review and merge if you are okay. let me know. 👍🏽 |
@Betree : Thanks for the reviews. I've corrected the things you mentioned. Let me know if you see any further issues. 👍🏽 |
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.
The code looks good
adds a component that shows a tooltip and truncates the name of a collective if its more than x
amount of characters, used to prevent collective names from showing as too long in the header of the
hero page
Happy to add tests to this, just wanted to get a directional "okay" first.
Resolve opencollective/opencollective#4495
Screenshots