-
Notifications
You must be signed in to change notification settings - Fork 10
Bind to HeadlessUI to implement Flyout menus #385
base: master
Are you sure you want to change the base?
Conversation
@tmattio is attempting to deploy a commit to the ocaml Team on Vercel. To accomplish this, @tmattio needs to request access to the Team. Afterwards, an owner of the Team is required to accept their membership request. |
@avsm The message above is strange, I thought you added me to the team already? |
I held this back intentionally (ocaml/ocaml.org#355 (comment)) because the amount of bug fix releases for JIT in tailwind CSS still seem high. |
The code certainly looks a lot nicer to me :-) |
I would imagine the colour on the icons would come back with |
Ah, missed that! |
You can keep it, just try to scan through all the existing pages in development (watch) and production (serve) build mode, to ensure that it works throughout the site. Also, we should ensure that the proper env is being set so that jit watcher mode (https://tailwindcss.com/docs/just-in-time-mode) is only activated when running |
I think you can use JIT all the time, it should be as fast as the previous compilation mode even for the first compilation. |
I expect JIT to always be used. I was thinking of this statement in the docs: "By default, Tailwind will start a long-running watch process if NODE_ENV=development, and it will run in one-off mode if NODE_ENV=production." Hopefully, nextjs sets this appropriately, but I wanted to us to confirm everything works as it should. |
This seems good to merge, as it improves the menus quite a bit. Anything blocking it? |
@avsm it's not quite complete yet. I'm planning on getting back to this as soon as the import work is complete on Most likely, I'll split out this PR in two: complete HeadlessUI bindings, and general improvement on the navigation/flyout menus. |
This is a warmup PR for me to get familiar with the stack, sorry if this is not addressing an open issue 🙂
This PR replaces the implementation of the flyout menus to use HeadlessUI (for which bindings are added).
The benefits are:
I'm opening this early, but there are still some problems to solve before merging:
PS: I'm also configuring TailwindCSS to use the JIT mode, hopefully, this is not too controversial!