Giter Club home page Giter Club logo

Comments (4)

basaran avatar basaran commented on May 21, 2024 1

Hard to choose :)

While proposal 2 looks great, it also somewhat overwrites the perception of the off state. Because we lose the background. Proposal 1 could also be the same way, because the dot color changes.

In the end, this is to notify the user about the invalid form, we have red outlines for checkboxes, inputs and so on, and this is only temporary to block the user, so may be just go with the actual ?

from pico.

lucaslarroche avatar lucaslarroche commented on May 21, 2024

Not sure 🙂
Maybe proposal 2:
https://codepen.io/picocss/pen/zYdZyQB

Screen Shot 2021-10-26 at 11 00 16

from pico.

lucaslarroche avatar lucaslarroche commented on May 21, 2024

At least there is no bug anymore. It's just a style preference, and it's quite easy to customize for users.
I will keep this issue open. Maybe there will be other comments.
The need for validation states on a switch is also probably uncommon.

from pico.

basaran avatar basaran commented on May 21, 2024

Glad the bug is gone, I will do a fresh pull shortly. It's actually uncommon, but who knows there might be a time where a lost soul does some server side validation or conditional things with yup and then need to trigger an error state. Who knows... :)

Please feel free to close at your convenience.

from pico.

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.