Closed ilixindri closed 2 years ago
Hi @alexandrogonsan , thanks for using the package!
This, to me, looks like it's outputting exactly what's expected, and that there might be a problem with the Tailwind installation or other rendering of styles. The HTML you posted has the Tailwind classes in it, and looks correct to me.
The only other thought I have... when you are compiling your Tailwind installation, it will strip out styles that are not used. Have you added the paths for these flash message views to the tailwind.config.js
file? See here: https://tailwindcss.com/docs/content-configuration#configuring-source-paths
See if that helps, because if you're seeing ml-3
styles applied in the inspector, but not the others, this would make sense.
In the child component action I put
flash('Your request was successful!')->success()->livewire($this);
and in the parent component I put<livewire:flash-container />
.The message is displayed without any alignment.
Code generated in the browser by the
<livewire:flash-container />
componentWhat i tried
With the
<div class="ml-3 text-sm leading-5 font-medium text-green-800">Your request was successful!</div>
element selected I searched for thetext-green-800
class in Google Chrome's Styles tab, but no element was shown. Different for example from theml-3
class that appears.Also tried the command
php artisan vendor:publish --provider="MattLibera\LivewireFlash\LivewireFlashServiceProvider"
and it didn't solve the problem.I followed this tutorial
https://stackoverflow.com/a/66828581
to install Tailwind and Font Awesome. The problem has not been resolved.