wire-elements / spotlight

Livewire component that brings Spotlight/Alfred-like functionality to your Laravel application.
MIT License
927 stars 72 forks source link

Fix TailwindCSS issue with `important` option #102

Closed dtorras closed 9 months ago

dtorras commented 1 year ago

It's impossible to use Spotlight if your Tailwind configuration uses the important option.

(for those who are not familiar with this option, you can read why it's a good idea to use it in this post by Seb from Spatie https://sebastiandedeyne.com/why-we-use-important-with-tailwind/)

Using the important modifier on AlpineJS x-show fixes this.

PhiloNL commented 9 months ago

Thanks!