From f8781f1ba26f9746580623fb508b9db89af548e9 Mon Sep 17 00:00:00 2001 From: Sean Li Date: Thu, 26 Feb 2015 16:30:30 -0800 Subject: [PATCH] Display 0% for progress bar and CSS tweak. --- src/Radial.react.js | 2 +- styles/right-panel.less | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Radial.react.js b/src/Radial.react.js index 7d1ee5bf96..d54cac6b3b 100644 --- a/src/Radial.react.js +++ b/src/Radial.react.js @@ -3,7 +3,7 @@ var React = require('react/addons'); var Radial = React.createClass({ render: function () { var percentage; - if (this.props.progress && !this.props.spin) { + if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin) { percentage = (
); diff --git a/styles/right-panel.less b/styles/right-panel.less index f201fdf5ca..3afe086760 100644 --- a/styles/right-panel.less +++ b/styles/right-panel.less @@ -64,6 +64,7 @@ margin-left: 16px; padding: 6px 10px; font-weight: 400; + display: inline-block; &:hover { border-radius: 40px; background-color: @color-background; @@ -76,6 +77,7 @@ &.disabled { opacity: 0.5; &:hover { + border-radius: 40px; background-color: transparent; } }