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

TailwindCSS 4.x support #61

Open
PV-Patrick opened this issue Jan 25, 2025 · 2 comments
Open

TailwindCSS 4.x support #61

PV-Patrick opened this issue Jan 25, 2025 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@PV-Patrick
Copy link

Is this working with TailwindCSS 4.x? I believe it was working on 3.x but since upgrading it's not working and not sure if it's a simple fix. Thank you!

@mabdullahsari
Copy link
Collaborator

Hiya! 👋

Tailwind 4.0 was tagged only 3 days ago. Unfortunately, I'm strapped for time so an upgrade is currently not on my radar.

But, I'm most definitely welcoming pull requests so please do contribute if you'd like to see this corrected asap!

@mabdullahsari mabdullahsari added the help wanted Extra attention is needed label Jan 26, 2025
@PV-Patrick
Copy link
Author

I ran the following command and now it works. I didn't have to run this prior, that I remember, and the messages were working.

php artisan vendor:publish --tag=toaster-views

I do know there are 2 modifications in the hud.blade.php file that are changes between Tailwind v3 and v4.

Line 28: class="inline-block select-none not-italic px-6 py-3 rounded-sm shadow-lg text-sm w-full {{ $alignment->is('bottom') ? 'mt-3' : 'mb-3' }}" rounded -> rounded-sm
Line 33: <button @click="toast.dispose()" aria-label="@lang('close')" class="absolute right-0 p-2 focus:outline-hidden rtl:right-auto rtl:left-0 {{ $alignment->is('bottom') ? 'top-3' : 'top-0' }}"> outline-none -> outline-hidden

That's all I could find from https://tailwindcss.com/docs/upgrade-guide#changes-from-v3

Now going to style using this: https://tailwindui.com/components/application-ui/overlays/notifications

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants