Skip to content
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

Upgrade to Tailwinds v4 #308

Open
John4E656F opened this issue Feb 14, 2025 · 5 comments
Open

Upgrade to Tailwinds v4 #308

John4E656F opened this issue Feb 14, 2025 · 5 comments

Comments

@John4E656F
Copy link

Hi, the tailwinds has update to v4.

With this update we are getting a bug where the datepicker popup doesn't appear.

react-tailwinds-datepicker.bug.mp4

I submitted a PR to fix the problem #307

@John4E656F John4E656F marked this as a duplicate of #309 Feb 14, 2025
@John4E656F
Copy link
Author

John4E656F commented Feb 14, 2025

A temporary fix

in global.css file add .opacity-1 { opacity: 100%; }

Like this

@layer utilities {
 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Roboto Condensed', sans-serif;
  }
.opacity-1 {
     opacity: 100%;
 }
}

@davecarlson
Copy link

the opacity bug technically exists in tailwind v3 aswell, "opacity-1" should always have been opacity-100, in both v3 and v4

@John4E656F
Copy link
Author

My last version was Tailwinds v3 and the opacity-1 worked.
Only when I updated to v4 I got this problem.

@davecarlson
Copy link

My last version was Tailwinds v3 and the opacity-1 worked. Only when I updated to v4 I got this problem.

Yeah, mine too. but it works because the rule is getting ignored. So if we just quickly patch that line to opacity-100 it'll work in both v3 and v4 without other tweaks

@mariczone
Copy link

where I can put "./node_modules/react-tailwindcss-datepicker/dist/index.esm.js" in tailwindcss4.
I think my css not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants