Replies: 1 comment
-
The rule you highlighted above is part of the Preflight styles, Tailwind's CSS reset. The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Tailwind override NextJs Image component with global height: 'auto' property![]()
My package.json
{
"name": "pokestatic",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@types/node": "18.14.4",
"@types/react": "18.0.28",
"@types/react-dom": "18.0.11",
"axios": "^1.3.4",
"eslint": "8.35.0",
"eslint-config-next": "13.2.3",
"next": "13.2.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "4.9.5"
},
"devDependencies": {
"autoprefixer": "^10.4.13",
"postcss": "^8.4.21",
"tailwindcss": "^3.2.7"
}
}
Example, I have a component and height: 'auto' overrides the height prop of
Next component.
I solve this to add
style={{ height: '100px'}}
but I don´t understand the cause of this bug.Beta Was this translation helpful? Give feedback.
All reactions