-
Notifications
You must be signed in to change notification settings - Fork 36
production issue #22
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
Comments
Here is the same codebase for another site I'm working on where I ran |
Hey! Can you provide actual source code for a project that demonstrates this issue? Not your real project, just a minimal reproduction. My guess it's something to do with how things are actually configured to build for production. Are you using interpolation by any chance, like https://tailwindcss.com/docs/optimizing-for-production#writing-purgeable-html |
I'm not sure where these styles are coming from, but all of these inline styles are what's causing the problem: They are overriding important styles applied by the aspect ratio classes like You can see after I remove some of the offending inline styles, the images take on the correct aspect ratio (3:2 like you've defined): I'm not sure what tooling you are using that is adding all of these extra styles or where it's coming from, but it's these extra styles you have that are not coming from Tailwind that are causing things to look different than they should. The fix for your project will be to track that stuff down and make sure you remove the styles that are overriding what you are trying to do with Tailwind. Hope that helps — if you believe this is a bug in Tailwind or the aspect-ratio plugin and can supply a proper minimal reproduction demonstrating it then totally happy to take another look 🍻 |
What version of @tailwindcss/aspect-ratio are you using?
^0.2.1
What version of Node.js are you using?
14.1.0
What browser are you using?
Brave
What operating system are you using?
macOS
Reproduction repository
https://merits-products-production.herokuapp.com/p/teams
Describe your issue
If I run
npm run production
the page layout for aspect ratio does not work howevernpm run dev
this plugin works just fine.the layout when working should look like the second grid layout on this page from tailwindui.com
https://tailwindui.com/components/marketing/sections/team-sections
The text was updated successfully, but these errors were encountered: