No force setting a cookie in localStorage when theme mode stays at default
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- react, tailwindcss, typescript
- Área
- frontend
Línea de trabajo
Reproduce el problema en un proyecto de Gatsby usando los componentes Flowbite y Flowbite-react, y luego busca la cookie flowbite-theme-mode y su gestión en localStorage. Confirma el comportamiento cuando no hay ningún modo de tema configurado; se considera terminado cuando el modo claro predeterminado funciona sin forzar esa cookie ni ese valor de almacenamiento.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
- [x ] I have searched the Issues to see if this bug has already been reported
- [ x] I have tested the latest version
Steps to reproduce
- Create a gatsbyjs project
- Install Flowbite and Flowbite-react
- Implement component without setting a theme
- Develop with 'Gatsby develop'
- Take a look into local storage in browser
Current behavior
The 'flowbite-theme-mode' cookie is ALWAYS being set even if no theme mode being used.
Expected behavior
Having control over what cookie being set or at least fix a default value somewhere else preventing a cookie being set, when no theme mode is being used. I expect a default value written in the codes core not in a cookie.
Context
I tried to remove the cookie by code. Since I am using multiple templates, I tried removing it with onClientEntry and onInitialClientRender which will only succeed once. As soon as the site being reloaded, the cookie is back.
There seems to be no option to control this cookie. Searching the code also results in nothing. I could not find anything to control this cookie. I do use a custom theme but with no theme mode. It should be light by default, but it should definitely not being read from the local storage but being set internally. It does not make much sense to force write a default value into a cookie when this value will never ever change.
No dark mode, just default light mode.
If you dont respect GDPR because it is annoying we can team up: I dont like the rules either!
But reading default values from a cookie which is written by default does not make a lot of sense. Store the default values in the core, not in a cookie.
NOTE: I know some people are allergic on this specific issue. You can detach this from the GDPR topic and focus on NOT setting a cookie when there is no theme mode.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.2k
- Forks
- 504
- Merge medio
- 19 h 16 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de themesberg/flowbite-react
-
fix(Carousel): can't give dynamic children to CarouselPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto:bug: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
themesberg/flowbite-react#1469 · 1 comentario ·
-
Pagination is broken if there is only one pagePosiblemente ocupada @Mukilan1600 la tomó hace 1021 días. Abierto:bug: bug confirmed good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
themesberg/flowbite-react#1048 · 7 comentarios · 1 reacción ·
-
:books: documentation help wanted
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
themesberg/flowbite-react#1696 · 2 comentarios ·
-
Add a QRCode componentAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
themesberg/flowbite-react#1693 ·
-
NavbarCollapse closes when toggling a MegaMenuDropdown on mobileQuizá libre de nuevo @sarthak-11231 la tomó hace 45 días y no hay ningún pull request abierto. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
themesberg/flowbite-react#1686 · 2 comentarios ·
Todos los issues de themesberg/flowbite-react
Issues similares
-
area:cards enhancement ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
fil-donadoni/tolaria#8883 ·
Los mantenedores suelen responder en 1 día
-
xsd:integer cast from a string rejects negative numbers, a leading + and surrounding whitespaceAbiertobug 🐛
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
comunica/comunica#1960 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Waiting for: Product Owner
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
getsentry/sentry-javascript#26203 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
bytedance/flowgram.ai#1235 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
devswha/herdr-web-ui#3325 ·