Skip to content

#breaking Styling improvements

Compare
Choose a tag to compare
@kimmobrunfeldt kimmobrunfeldt released this 14 Mar 14:32
· 61 commits to master since this release
  • New documentation in http://progressbarjs.readthedocs.org/en/1.0.0/

  • Fixed and updated sauce labs tests

  • Add text.autoStyleContainer option

  • HTML string or DOM element is now possible to pass in opts.text.value or to .setText method

  • breaking: Change behavior default style options. From now on, if you define anything to opts.svgStyle or opts.text.style yourself, no default values will be used. This makes customising the styles easier in JS. If you want to only change one single style attribute, you can do it after initializing the progress bar, like this:

    var bar = new ProgressBar.Line('#container');
    bar.text.style.fontSize = '40px';
  • Fix #107