Commit eedb9a2 Philip Weiss
committed
1 parent e32f8c3 commit eedb9a2 Copy full SHA for eedb9a2
File tree 3 files changed +15
-7
lines changed
3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change
1
+ const path = require ( 'path' ) ;
2
+
3
+ module . exports = {
4
+ module : {
5
+ loaders : [
6
+ {
7
+ test : / \. c s s ? $ / ,
8
+ loaders : [ 'style' , 'raw' ] ,
9
+ include : path . resolve ( __dirname , '../' )
10
+ }
11
+ ]
12
+ }
13
+ }
Original file line number Diff line number Diff line change 14
14
"prepublish" : " in-publish && safe-publish-latest && npm run build || not-in-publish" ,
15
15
"lint" : " eslint --ext .js,.jsx src test stories" ,
16
16
"storybook" : " start-storybook -p 9001" ,
17
+ "prestorybook:css" : " npm run build:css" ,
18
+ "storybook:css" : " start-storybook -p 6006 -c .storybook-css" ,
17
19
"pretest" : " npm run build && npm run lint" ,
18
20
"test" : " nyc npm run test:all" ,
19
21
"tests-only" : " npm run test:all" ,
71
73
},
72
74
"dependencies" : {
73
75
"airbnb-prop-types" : " ^2.10.0" ,
74
- "clean-css" : " ^4.1.11" ,
75
76
"object.assign" : " ^4.1.0" ,
76
77
"prop-types" : " ^15.6.2" ,
77
78
"react-with-styles" : " ^3.2.0" ,
Original file line number Diff line number Diff line change @@ -747,15 +747,10 @@ class Rheostat extends React.Component {
747
747
} = this . props ;
748
748
749
749
const {
750
- handleDimensions,
751
750
handlePos,
752
751
values,
753
752
} = this . state ;
754
753
755
- const handleContainerStyle = orientation === VERTICAL
756
- ? { left : 0 , bottom : handleDimensions / 2 , top : handleDimensions / 2 }
757
- : { top : 0 , left : handleDimensions / 2 , right : handleDimensions / 2 } ;
758
-
759
754
return (
760
755
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
761
756
< div
@@ -770,7 +765,6 @@ class Rheostat extends React.Component {
770
765
ref = { this . setHandleContainerNode }
771
766
{ ...css (
772
767
styles . handleContainer ,
773
- handleContainerStyle ,
774
768
styles . rheostat_background ,
775
769
orientation === VERTICAL
776
770
? styles . rheostat_background__vertical
You can’t perform that action at this time.
0 commit comments