Code Monkey home page Code Monkey logo

Comments (3)

richardtape avatar richardtape commented on August 22, 2024

I absolutely love this framework. Thank you so much for your hard work.

imho use switches like this is problematic for at least 2 main reasons:

  1. It's not "The WordPress way" - I think frameworks such as this should stick to the way WordPress handles options as much as possible. It makes for a more consistent user experience across the platforms
  2. There's no solid research on how good or bad switches are for accessibility or general UX. However there is a metric crap-tonne for a standard checkbox.

My personal preference here would be to stick to checkboxes. However, if you wanted to go with switches, I would go with a solution which would allow me as a developer to use them or not'

'use_switches' => true

As part of the settings array, for example.

My 2 cents. Again, thanks for your hard work on this.

from kirki.

aristath avatar aristath commented on August 22, 2024

hey there!
I'm glad you like Kirki. 😄

IF we finally implement switwes, of course there's going to be an argument that will allow you to enable them on a per-setting basis.
For consistency we'll probably use 'mode' => 'switch' since we use 'mode' on radios as well.

from kirki.

aristath avatar aristath commented on August 22, 2024

2 new modes have been added: switch and toggle.

from kirki.

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.