Git Product home page Git Product logo

Comments (4)

tborychowski avatar tborychowski commented on September 28, 2024 1

Hi.

This was intentional.
I know many UI frameworks fucked-up the toggle, but it was never supposed to be a click-to-toggle widget!
It came from mobile uis, where it used to behave exactly like this one - you slide to switch.
It was based on a physical, real world switch, which you "slide" to the opposite position.

That said, I know that even mobile UIs have now extended the behaviour of this, so it can be used with click-to-toggle :-(
So maybe it's time to give up to bootstraps of this world 😉

I may add the click-to-toggle but the sliding will stay too, as it's the right UX to do.

(and btw. s3schools is not a good example of anything. It has a bad reputation in the dev community, especially on the expert level, for mistakes and blunders in their docs)

from perfect-home.

mly32 avatar mly32 commented on September 28, 2024

Oh, that's cool. I forgot about the mobile side of things. I think you can keep the dragging behavior.

Not sure how useful this is: https://v5.material.angular.io/components/slide-toggle/examples, but they have the behavior I was describing. Underlying the toggle is a checkbox, but they keep the dragging behavior of the toggle through CSS styling.

Feel free to close this issue.

from perfect-home.

tborychowski avatar tborychowski commented on September 28, 2024

Yep, the material example is exactly what I intent to do: it allows the click but also drag!
:-)

from perfect-home.

tborychowski avatar tborychowski commented on September 28, 2024

That's fixed now and available in v0.13.5.
Thanks for pushing me :-)

from perfect-home.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.