-
Notifications
You must be signed in to change notification settings - Fork 766
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
Prefixes in components #132
Comments
I'm also having the same issue with the modal window |
Will introduce prefixes for v1.5. |
This is now fixed on the develop branch by using a special function that introduces the prefix to all injected classes. It will directly look into the Another feature is that you will be able to set the prefix for the data attributes too, such as
This will be pushed to NPM for the v1.5. |
This is great @zoltanszogyenyi , thank you very much! |
Hello @zoltanszogyenyi, Thank you for this great module. |
@zoltanszogyenyi we're on 1.6 now and these changes are still in develop. Any chance they're going to make it into the next release? |
Any chance to fix this issue in the next releases? v1.6.3 flowbite still not working properly with tailwind prefixes. |
Any news on that? |
Hello everyone, I'm trying my best to get this out in the next release, unfortunately I'm the only one maintaining the repository right now and it's a bit difficult to keep up with other issues as well. A branch has already been started and theoretically there's not too much left to do - the way it will work is that it will automatically take the prefix settings from the Can't give an ETA but it should be live in the next couple of months. Thanks <3 Zoltan PS: PR's are more than welcome for help, it's an open-source project |
Tooltip and Dropdown components don't work when tailwindcss prefix is set. this bug waste me one day. |
Same. I can confirm that the prefixing will cause an issue with the toggle component. When prefixing is applied, the toggle component fails to display the larger "dot" element. |
damn this is still a bug? fuck me |
Hi, we love Flowbite and we would like to use it as a base for our project. However, we're in the process of migration between 2 tailwind and bootstrap and custom theme with similar utility classes like bootstrap. That's why we need to add prefixes to all tailwind classes which is why I got here. I realised that we cannot use the provided JS because it doesn't add prefixes to classes. Is there any chance this is going to be fix/released soon or some workaround for time being? Thank you! |
is this solved? i am also using prefix in tailwind tw- and seems due to that this isn't working for me |
Hi, I had the same problem. I'm using "tw-" as a prefix (take a look at my example below). Based on the dropdown code, https://github.com/themesberg/flowbite/blob/main/src/components/dropdown/index.ts I made a workaround while the official fix is ready:
I'm sure it could be better, but works. |
Why is this still not fixed? Even though the Flowbite version is 2.3! |
Any news about this please?? |
I have found a fix for the dropdown's based on CSS, at least with this fix I can avoid add more JS to my file:
|
Any news? |
Any updates on this? Would be greatly appreciated if this got added |
I can see that now all the components are using PS. Maybe there is, I'm just not JS fluent enough to tackle that by myself
So at least we can do
|
Describe the bug
Tooltip and Dropdown components don't work when tailwindcss prefix is set.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Components support custom prefixes
Desktop (please complete the following information):
Additional context
Components have default tailwindcss classes hardcoded: https://github.com/themesberg/flowbite/blob/main/src/components/tooltip.js#L70 and there is no prefix injection there
The text was updated successfully, but these errors were encountered: