-
-
Notifications
You must be signed in to change notification settings - Fork 91
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 always open menu on article sidebar after selection #615
Conversation
Snyk has created this PR to upgrade @sentry/nextjs from 7.73.0 to 7.74.0. See this package in npm: https://www.npmjs.com/package/@sentry/nextjs See this project in Snyk: https://app.snyk.io/org/nialljoemaher/project/8ac19f6c-c7f2-4720-acd1-09701979877c?utm_source=github&utm_medium=referral&page=upgrade-pr
@snyk-bot is attempting to deploy a commit to the CodΓΊ Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
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.
Thanks for this! Only one question/suggestion. π¦Ύ
@@ -164,7 +176,10 @@ const ArticleMenu = ({ | |||
leaveFrom="transform opacity-100 scale-100" | |||
leaveTo="transform opacity-0 scale-95" | |||
> | |||
<Popover.Panel className="origin-top-right absolute bottom-14 right-0 lg:left-16 lg:bottom-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white dark:bg-white ring-1 px-1 ring-black ring-opacity-5 focus:outline-none"> | |||
<Popover.Panel |
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.
Rather than styling, do you think this might be a cleaner solution? https://headlessui.com/react/popover#closing-popovers-manually This lets you use the internal popover state to close things.
Let me know what you think!
@NiallJoeMaher Hi, let me know if there are more questions/suggestions about it. Just for a reminder, this PR is still not merged yet. |
Hey! Yes, I added a change request but didn't see any comments or updates, so I was waiting for that. π¦Ύ Let me know if I can help with anything. |
Oh I left comment under your reply, but it was pending, sorry about that! And this is my reply: @NiallJoeMaher |
Perfect let me test it and get back to you! If it isn't work as I hoped I'll get this merged. Thanks! |
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.
LGTM! I'm not sure why the build is breaking but we will get there. π’
@NiallJoeMaher Thanks for the review! Let me know if there's something that I have to fix for the build. |
Sorry about the delay! I had a nightmare over the last few days with my AWS pipeline! Thanks for the work. π¦Ύ |
β¨ Codu Pull Request π»
π Please remove the below and replace with your own values, leaving the headers where they are. π
Pull Request details:
Fixes #594
Fixed the issue that
Popover.panel
always opens whenReport Article
is clicked.Any Breaking changes:
None
Associated Screenshots:
Popover.1.mp4
p.s: Let me know if there's something not working or I'm missing, Thanks!