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

feat: migrate headless ui components to radix primitives #4347

Closed
wants to merge 0 commits into from
Closed

feat: migrate headless ui components to radix primitives #4347

wants to merge 0 commits into from

Conversation

sdthakral33
Copy link

@sdthakral33 sdthakral33 commented Dec 25, 2023

What does this PR do?

This PR contains the changes for migrating headlessui library to radix ui primitve

Related issues

/claim #4327
Fixes #4327

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (non-breaking small changes to existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Explanation of the changes

All the components like menus and modals using headlessui components have been migrated to radix ui primitive

Copy link

vercel bot commented Dec 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
web ✅ Ready (Inspect) Visit Preview Jan 1, 2024 6:58pm

Copy link

algora-pbc bot commented Dec 25, 2023

💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe/Alipay.

@sdthakral33
Copy link
Author

Hey @bigint Please review this PR.
Thanks!

@bigint
Copy link
Member

bigint commented Dec 26, 2023

Screen.Recording.2023-12-26.at.9.29.10.PM.mov

can't close modal on clicking outside

@bigint bigint changed the title Fix #4327 Migrate Headless UI Components to radix primitive feat: migrate headless ui components to radix primitives Dec 26, 2023
@bigint
Copy link
Member

bigint commented Dec 26, 2023

Screen.Recording.2023-12-26.at.9.30.02.PM.mov

scroll is enabled even after opening the modal

@bigint
Copy link
Member

bigint commented Dec 26, 2023

Screen.Recording.2023-12-26.at.9.31.08.PM.mov

dropdown misaligned

@bigint
Copy link
Member

bigint commented Dec 26, 2023

Screen.Recording.2023-12-26.at.9.31.40.PM.mov

here too

@bigint
Copy link
Member

bigint commented Dec 26, 2023

Screenshot 2023-12-26 at 9 32 26 PM

misaligned here too

@sdthakral33
Copy link
Author

@bigint Thanks for the comments! Working on fixing those.

apps/web/src/components/Composer/Actions/Attachment.tsx Outdated Show resolved Hide resolved
apps/web/src/components/Composer/Actions/Attachment.tsx Outdated Show resolved Hide resolved
apps/web/src/components/Composer/Actions/Attachment.tsx Outdated Show resolved Hide resolved
apps/web/src/components/Composer/Actions/Attachment.tsx Outdated Show resolved Hide resolved
packages/ui/src/Modal.tsx Outdated Show resolved Hide resolved
apps/web/src/components/Explore/index.tsx Outdated Show resolved Hide resolved
apps/web/src/components/Explore/index.tsx Outdated Show resolved Hide resolved
Copy link

vercel bot commented Dec 26, 2023

@sdthakral33 is attempting to deploy a commit to the Hey Team on Vercel.

A member of the Team first needs to authorize it.

@sdthakral33
Copy link
Author

@bigint Addressed All the review comments and made changes accordingly. Please review the changes again.
Thanks!

@bigint
Copy link
Member

bigint commented Dec 27, 2023

Screenshot 2023-12-27 at 2 16 42 PM

there is no spacing below the navbar weird 🤔

@bigint
Copy link
Member

bigint commented Dec 27, 2023

@sdthakral33 can you please make it pixel perfect checking side by side with prod and your branch?

@bigint bigint marked this pull request as draft December 27, 2023 08:47
@sdthakral33
Copy link
Author

Visit Preview

@bigint I am not to seeing this issue on my machine. I did a side by side check also, it looks fine.
Screenshot 2023-12-27 at 3 08 42 PM (2)

@bigint
Copy link
Member

bigint commented Dec 27, 2023

It's happening for me when staff mode is enabled, there will be another navbar above the navbar, it works fine on main branch

@sdthakral33
Copy link
Author

@bignit Is there some way for me to test the behaviour in staff mode?

@bigint
Copy link
Member

bigint commented Dec 27, 2023

you can just set true on staff mode boolean manual on the code

{staffMode ? <StaffBar /> : null}

@sdthakral33
Copy link
Author

@bigint I have fixed that navbar issue, can you pls check it again

apps/web/package.json Outdated Show resolved Hide resolved
apps/web/src/components/Common/Layout.tsx Outdated Show resolved Hide resolved
@bigint
Copy link
Member

bigint commented Dec 27, 2023

Screen.Recording.2023-12-27.at.10.11.56.PM.mov

closing is not smooth!

@sdthakral33
Copy link
Author

sdthakral33 commented Dec 27, 2023

Screen.Recording.2023-12-27.at.10.11.56.PM.mov
closing is not smooth!

@bigint Fixed this in the latest commit.

@sdthakral33
Copy link
Author

@bigint Any updates on this PR? I have made all the changes wrt the review comments and everything now seems to work fine. Can you please review and provide any further comments if you have.
Thanks!

@sdthakral33
Copy link
Author

@bigint Any Updates?

@bigint
Copy link
Member

bigint commented Jan 4, 2024

I see lot of issues still

image

seeing outer ring on hover

@sdthakral33
Copy link
Author

sdthakral33 commented Jan 4, 2024

I see lot of issues still

image seeing outer ring on hover

@bigint It is already existing behaviour. It is coming on :focus-visible not on :hover, adding a blue outline. I have not added anything extra. Please see the attached screenshot for reference on testnet.
Screenshot 2024-01-04 at 12 34 24 PM (2)
Screenshot 2024-01-04 at 12 43 12 PM (2)

@sdthakral33
Copy link
Author

I see lot of issues still

image seeing outer ring on hover

@bigint Is there any issue other than this one that you have observed?

@sdthakral33
Copy link
Author

I see lot of issues still
image
seeing outer ring on hover

@bigint It is already existing behaviour. It is coming on :focus-visible not on :hover, adding a blue outline. I have not added anything extra. Please see the attached screenshot for reference on testnet. Screenshot 2024-01-04 at 12 34 24 PM (2) Screenshot 2024-01-04 at 12 43 12 PM (2)

@bigint Let me know if you want me to fix this behaviour.

@bigint
Copy link
Member

bigint commented Jan 4, 2024

@sdthakral33 it can happen when using keyboard but when just using the mouse its happening 🙇🏼

@bigint
Copy link
Member

bigint commented Jan 4, 2024

Screen.Recording.2024-01-04.at.3.42.28.PM.mov

@sdthakral33 sdthakral33 marked this pull request as draft January 10, 2024 10:58
@sdthakral33 sdthakral33 marked this pull request as ready for review January 10, 2024 10:58
@sdthakral33 sdthakral33 marked this pull request as draft January 10, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Migrate away from all headless ui usage to use radix primitives
2 participants