about summary refs log tree commit diff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-02 22:29:19 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-02 22:29:19 +0100
commit4b357ecf98f373f5ed31c71ecc1a79d23572cd00 (patch)
treeb0c81653896add9880f17738b17738e42deb7a88 /app/assets/javascripts
parentd427df4a8ae16809b068aca8c65006de2ccbd27e (diff)
Fix subtle bugs, new icon button
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/components/components/icon_button.jsx10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/assets/javascripts/components/components/icon_button.jsx b/app/assets/javascripts/components/components/icon_button.jsx
index 085c18541..663728f34 100644
--- a/app/assets/javascripts/components/components/icon_button.jsx
+++ b/app/assets/javascripts/components/components/icon_button.jsx
@@ -28,15 +28,19 @@ const IconButton = React.createClass({
   render () {
     const style = {
       display: 'inline-block',
+      border: 'none',
+      padding: '0',
+      background: 'transparent',
       fontSize: `${this.props.size}px`,
-      width: `${this.props.size}px`,
+      width: `${this.props.size * 1.28571429}px`,
       height: `${this.props.size}px`,
-      lineHeight: `${this.props.size}px`
+      lineHeight: `${this.props.size}px`,
+      cursor: 'pointer'
     };
 
     return (
       <button aria-label={this.props.title} title={this.props.title} className={`icon-button ${this.props.active ? 'active' : ''}`} onClick={this.handleClick} style={style}>
-        <i className={`fa fa-fw fa-${this.props.icon}`} aria-hidden='true'></i>
+        <i className={`fa fa-fw fa-${this.props.icon}`} aria-hidden='true' />
       </button>
     );
   }