Skip to content

Commit f56eb82

Browse files
committed
Avoid !important in progress spec
1 parent 770f55a commit f56eb82

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

spec/components/progress.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import ProgressBar from '../../components/progress_bar';
3-
import style from '../style'
3+
import style from '../style';
44

55
const initialState = {
66
progress: 0,
@@ -49,7 +49,7 @@ class ProgressBarTest extends React.Component {
4949
<p style={{margin: '10px auto'}}>Circular</p>
5050
<ProgressBar type='circular' mode='indeterminate'/>
5151
<p style={{margin: '10px auto'}}>Circular with custom size</p>
52-
<ProgressBar type='circular' mode='indeterminate' className={style.customSizedProgress}/>
52+
<ProgressBar className={style.customSizedProgress} type='circular' mode='indeterminate' theme={style} />
5353
</section>
5454
);
5555
}

spec/style.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ $offset: 1.8 * $unit;
141141
}
142142

143143
.customSizedProgress {
144-
width: 40px !important;
145-
height: 40px !important;
144+
&.circular {
145+
width: 40px;
146+
height: 40px;
147+
}
146148
}

0 commit comments

Comments
 (0)