Skip to content

Toggle switch UI not showing properly. #1360

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

Closed
karanMalhii opened this issue Apr 13, 2024 · 9 comments
Closed

Toggle switch UI not showing properly. #1360

karanMalhii opened this issue Apr 13, 2024 · 9 comments
Labels
📚 documentation Improvements or additions to documentation

Comments

@karanMalhii
Copy link

karanMalhii commented Apr 13, 2024

on latest version 8.0 the toggle switch button is not working; properly.

image

https://flowbite-react.com/docs/components/forms#toggle-switch

@SutuSebastian
Copy link
Collaborator

Do u mean "its NOT working properly" maybe? 😄

@karanMalhii
Copy link
Author

Do u mean "its NOT working properly" maybe? 😄

nice catch😉

@karanMalhii
Copy link
Author

now it seems working fine.

@SutuSebastian
Copy link
Collaborator

Still broken in the docs tho.

@rluders rluders reopened this Apr 16, 2024
@rluders rluders added the 📚 documentation Improvements or additions to documentation label Apr 16, 2024
@taskrider2022
Copy link

Also broken if you use them in your project

@alfreddagenais
Copy link

I just mentioned into this issue #1321 (comment) A temporary fix for me :

export const customThemeToggleSwitch: CustomFlowbiteTheme['toggleSwitch'] = {
    toggle: {
      base: "after:rounded-full rounded-full border group-focus:ring-4 group-focus:ring-cyan-500/25",
      checked: {
          on: "after:bg-white after:translate-x-full",
          off: "after:bg-gray-400 dark:after:bg-gray-500 border-gray-200 bg-gray-200 dark:border-gray-600 dark:bg-gray-700",
      },
    },
};

This solution might help others facing similar problems.

@victorfunes
Copy link

Also broken for me.

@MateoWartelle
Copy link
Contributor

#1397 - you can close

@SutuSebastian
Copy link
Collaborator

Fixed in #1428

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

7 participants