Comments (5)
I already found the error, what happens is that when I sign in I show a modal in a component that does use the custom theme (is the only that use custom theme) because what I want is that only at the time of authentication the modal is shown and spinner without the background color. But apparently the rest of the modals that are in different components and that are used in other routes (pages) inherit the custom theme.
I share with you the code I use to customize the modal at the time of sign in.
https://gist.github.com/jotacollantes/ee0c892191ea3202ffa99049d1c5def3
Now that I remember between upgrade versions, more than once I have had to modify this custom theme. Apparently the theme keys changes when new versions are released.
Thank you very much for your help
from flowbite-react.
Tested on fresh Vite + React project => works.
The issue here might be ur custom theme override in the <Flowbite theme={{ theme: customTheme }}>
component, because a lot of things changed from version 0.6.x to 0.7.x, including the theme keys of the components.
I suggest u remove the custom theme, and test again.
Here's a functional flowbite-react + vite
example:
https://stackblitz.com/edit/vitejs-vite-n3kwrs
from flowbite-react.
Hello Sutu, thanks for responding. I tell you that this is a NextJS 14.0.1 project and the code I use for the modal component is copied from the flowbite-react website and pasted as is. Since I had the problem of the date in the days of the week in the datepicker, the only thing I had to do was update the flowbite react dependency from version 0.6.4 to 0.7.2 and the modals lost their background color. The Modal components do not use any custom theme settings.
from flowbite-react.
Sure, here's a Next.js fresh project with latest versions for all packages and a demo with the flowbite-react
modal component. It works.
https://stackblitz.com/edit/stackblitz-starters-teolxc
from flowbite-react.
Tested on fresh Vite + React project => works.
The issue here might be ur custom theme override in the
<Flowbite theme={{ theme: customTheme }}>
component, because a lot of things changed from version 0.6.x to 0.7.x, including the theme keys of the components.I suggest u remove the custom theme, and test again.
Here's a functional
flowbite-react + vite
example:
Glad u found the problem, just like I suggested here 😄
from flowbite-react.
Related Issues (20)
- Tab.Item onClick is full outlined.
- bug: Datepicker always displays below input field
- Theme sync may cause render loops across different browser tabs HOT 3
- Sidebar.Item does not show correct active background color HOT 1
- Flowbite setup with NX Monorepo HOT 6
- Feature request: friendly version of Floating as a new component. HOT 1
- react-icons v5 (required by ui/package.json) is not type compatible with icon prop in components like Alert HOT 1
- Toggle switch UI not showing properly. HOT 8
- Select a Month, Year Change is not working.
- <Modal.Overlay> || <Modal.Base>
- Datepicker is not allowing clearing date
- Some component (at least my spinner and button) are broken after upgrade to 0.9.0 and 0.8.0 from 0.7.3 HOT 1
- Avatar should render dummy svg when provided with render function
- Text from date picker coverd by icon? Missing styling HOT 1
- Flowbite button does not have attribute download
- Datepicker update value
- ERR_MODULE_NOT_FOUND: Cannot find module flowbite/plugin HOT 1
- Date Picker Auto Hide
- Sidebar couldn't redesign its shape HOT 1
- Module '"flowbite-react"' has no exported member 'Drawer'. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flowbite-react.