Skip to content
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

Docs : Toggle Switch #1321

Closed
2 tasks done
MateoWartelle opened this issue Mar 26, 2024 · 3 comments
Closed
2 tasks done

Docs : Toggle Switch #1321

MateoWartelle opened this issue Mar 26, 2024 · 3 comments
Labels
🐛 bug Something isn't working confirmed This bug was confirmed

Comments

@MateoWartelle
Copy link
Contributor

MateoWartelle commented Mar 26, 2024

  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version

Steps to reproduce

  1. Go to https://www.flowbite-react.com/docs/components/forms#toggle-switch

Current behaviour

Describe what is currently happening and why it's a problem.

toggleSwitch

Expected behaviour

Describe what you expected to happen.

toggleSwitch-1

Context

What are you trying to accomplish? Does this only happen on a specific browser, screen size, or operating system?

If possible, provide a live example URL, screenshot, video, or a repository with the minimal reproduction of the issue.

@rluders rluders added 🐛 bug Something isn't working confirmed This bug was confirmed labels Mar 26, 2024
@alfreddagenais
Copy link

I recently encountered an issue in my application and realized that there has been a change in the Flowbite-react template. To address this issue for now, I added a custom theme. This solution might help others facing similar problems.

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",
      },
    },
};

Additionally, I noticed that PR #1199 could potentially resolve this issue if integrated.

@lars-jpeg
Copy link

Just a random comment, but I went to look at the switches the other day and saw the same thing and I thought it actually looked kinda cool how the color works as an indicator light whether the switch is active or not, but it is definitely not according to convention and what internet users are used to.

@akashMasih
Copy link
Contributor

Working on this issue Docs : Toggle Switch #1321

akashMasih pushed a commit to akashMasih/flowbite-react that referenced this issue May 17, 2024
rluders pushed a commit that referenced this issue May 17, 2024
* Docs : Toggle Switch #1321 - Issue has been fixed

* Fix the issue earlier I forget to format

---------

Co-authored-by: akashmasih1 <113181496+akashmasih1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working confirmed This bug was confirmed
Projects
None yet
Development

No branches or pull requests

5 participants