-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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: Prevent accordion chevron from shrinking on smaller viewports #717
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
@FadyMak is attempting to deploy a commit to the shadcn-pro Team on Vercel. A member of the Team first needs to authorize it. |
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.
You also need to edit the New York
theme's component and update the registry.
And other two things:
- in TailwindCSS v3+ you should use
shrink-0
instead offlex-shrink-0
- the linter has a warning about the classnames order (place it after the
w-4
)
Thanks for the feedback @dan5py 🙇 I believe I've applied the requested changes if you wouldn't mind having a look when you get a chance.
For this, I ran the |
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.
Seems all good now.
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.
Thank you
…iewports (shadcn-ui#717) * Prevent accordion chevron from shrinking on smaller viewports * fix: apply feedback
…iewports (shadcn-ui#717) * Prevent accordion chevron from shrinking on smaller viewports * fix: apply feedback
…ui#717) If compiler options are only added to just tsconfig.json, module resolution fails for `@/lib/utils` during build. <!---☝️ PR title should follow conventional commits (https://conventionalcommits.org) --> <!-- Please ensure there is an open issue and mention its number as shadcn-ui#123 --> <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply. --> - [ ] 📖 Documentation (updates to the documentation, readme or JSdoc annotations) - [ ] 🐞 Bug fix (a non-breaking change that fixes an issue) - [x] 👌 Enhancement (improving an existing functionality like performance) - [ ] ✨ New feature (a non-breaking change that adds functionality) - [ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries) - [ ]⚠️ Breaking change (fix or feature that would cause existing functionality to change) The change is mean to allow event type to support `values: z.infer<typeof schema>`, not only `values: Record<string, any>` Resolves shadcn-ui#716 <!-- Add screenshots to help explain the change. --> <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [x] I have linked an issue or discussion. - [ ] I have updated the documentation accordingly.
Prevents the chevron icon of the accordion from shrinking on smaller viewports:
Before:
After: