Cannot use Bootstrap5 theme with 6.1.4
jinyancool opened this issue · 8 comments
Have you searched through other issues to see if your problem is already reported or has been fixed?
Yes, I did not find it.
Did you read the documentation?
Yes, I did not find it.
Have you tried to publish the views?
Yes - I didn't work.
Is there an error in the console?
No
PHP Version
No response
PowerGrid
6.1.4
Laravel
11.28.1
Livewire
3.1.12
Alpine JS
No response
Theme
Bootstrap
Describe the bug.
Following the install and PowerGrid Configuration seps, it seems that we cannot setup bootstrap5 theme.
The action button is undefined.
To Reproduce...
First click on "FOO" then....
Extra information
<?php
//...
If my website is using Bootstrap5 theme, it seems I cannot using tailwind theme for livewire-powergrid. There will have a conflict.
With a fresh install, tailwind theme is fine. But Bootstrap5 theme has a bug.
Can you share the screenshot error?
@jinyancool maybe because the Laravel Fresh install doesnt come with Bootstrap but with Tailwind by default?
Maybe you need to configure bootstrap first.
@jinyancool maybe because the Laravel Fresh install doesnt come with Bootstrap but with Tailwind by default?
Maybe you need to configure bootstrap first.
`
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>`After added above codes, it seems the them is changed.
Manually add the above codes, the theme looks better.
@jinyancool maybe because the Laravel Fresh install doesnt come with Bootstrap but with Tailwind by default?
Maybe you need to configure bootstrap first.
The Bootstrap theme works normally if no other CSS layer is on top, such as templates. You may have to make some adjustments with CSS for it to work. For now I'm closing this
I also tested it here and it works