ecklf / tailwindcss-radix

Utilities and variants for styling Radix state
https://tailwindcss-radix.vercel.app
MIT License
2.09k stars 67 forks source link

Demo `origin-[top_center]` and other references #25

Closed adamhp closed 1 year ago

adamhp commented 1 year ago

I'm perusing the demo here and trying to adapt some of the examples. I'm noticing there's reference to origin-[top_center] in the Navigation Menu demo: https://github.com/ecklf/tailwindcss-radix/blob/9a222a5668e67d1d7a942d37a1959e0028171c3a/demo/components/navigation-menu.tsx#L148 but I don't see where that variant has been added. I did a full search of the repo on both branches without much luck.

Implementing the demo as is, the menu is centered with respect to the parent element, and is missing the small caret that connects the flyout to the nav. Would appreciate any insight here!

Edit: I'm an actual idiot. It's Friday. Don't hate me. I'm now remembering the [ ] syntax in Tailwind.