GithubHelp home page GithubHelp logo

justboil / bulma-switch-control Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 2.0 466 KB

Switch controls for Bulma CSS Framework

Home Page: https://justboil.github.io/bulma-switch-control/

License: MIT License

CSS 62.71% JavaScript 5.42% SCSS 31.87%
bulma bulma-css-framework bulma-css bulma-framework bulma-ui bulma-extension bulma-extensions

bulma-switch-control's People

Contributors

vikdiesel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

1ronman

bulma-switch-control's Issues

DEPRECATION WARNING: Using / for division is deprecated

bulma-switch-control: 1.1.1
sass: 1.39.2

[WEBPACK] DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
[WEBPACK]
[WEBPACK] Recommendation: math.div($switch-width, 2)
[WEBPACK]
[WEBPACK] More info and automated migrator: https://sass-lang.com/d/slash-div
[WEBPACK]
[WEBPACK] ╷
[WEBPACK] 25 │ height: #{$switch-width / 2 + $switch-padding};
[WEBPACK] │ ^^^^^^^^^^^^^^^^^
[WEBPACK] ╵
[WEBPACK] node_modules/bulma-switch-control/scss/_switch.scss 25:17 @import
[WEBPACK] node_modules/bulma-switch-control/bulma-switch-control.scss 3:9 @import

Using custom color in Bulma switch

Hi,

We're using this Bulma switch in our ElectronJS application. We've successfully added the switch component but can't modify the color of it.

So far only default switch is working

We've imported @import "~bulma-switch-control"; in our SCSS file and using the components in a ts file as follows,

<label className="switch is-rounded">
  <input type="checkbox"
// and so on

We've tried adding is-success and is-danger to className following https://wikiki.github.io/form/switch/ but no effect.

Any comments would be appreciated.

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.