Skip to content

Commit

Permalink
Avoid !important in progress spec
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Aug 7, 2016
1 parent 770f55a commit f56eb82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/components/progress.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ProgressBar from '../../components/progress_bar';
import style from '../style'
import style from '../style';

const initialState = {
progress: 0,
Expand Down Expand Up @@ -49,7 +49,7 @@ class ProgressBarTest extends React.Component {
<p style={{margin: '10px auto'}}>Circular</p>
<ProgressBar type='circular' mode='indeterminate'/>
<p style={{margin: '10px auto'}}>Circular with custom size</p>
<ProgressBar type='circular' mode='indeterminate' className={style.customSizedProgress}/>
<ProgressBar className={style.customSizedProgress} type='circular' mode='indeterminate' theme={style} />
</section>
);
}
Expand Down
6 changes: 4 additions & 2 deletions spec/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ $offset: 1.8 * $unit;
}

.customSizedProgress {
width: 40px !important;
height: 40px !important;
&.circular {
width: 40px;
height: 40px;
}
}

0 comments on commit f56eb82

Please sign in to comment.