-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add storybook css interface (4/7) #164
Conversation
@@ -770,7 +765,6 @@ class Rheostat extends React.Component { | |||
ref={this.setHandleContainerNode} | |||
{...css( | |||
styles.handleContainer, | |||
handleContainerStyle, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out that this didn't actually do anything, and was just being overridden. Since it is not overridden with the CSS interface, and was causing graphical issues, I removed it.
css/styles.css
Outdated
@@ -0,0 +1,113 @@ | |||
.DefaultProgressBar__vertical { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this file be gitignored (altho not npm-ignored), and generated as part of build output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm what is the rationale for not putting it on Github? On one hand it's a generated file, but on the other it might be useful for someone skimming the repository online or right after cloning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally those aren't supported use cases; you can use http://unpkg.com/react-dates/ if you want to browse generated output.
css/styles.css
Outdated
width: 15px; | ||
top: 0px; | ||
height: 100% | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all files should have trailing newlines
package.json
Outdated
@@ -14,6 +14,7 @@ | |||
"prepublish": "npm run build", | |||
"lint": "eslint --ext .js,.jsx src test stories", | |||
"storybook": "start-storybook -p 9001", | |||
"storybook:css": "npm run build:css && start-storybook -p 6006 -c .storybook-css", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"prestorybook:css": "npm run build:css"
?
.storybook-css/config.js
Outdated
registerCSSInterfaceWithDefaultTheme(); | ||
|
||
function loadStories() { | ||
require('../stories/ExampleSlider.jsx'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should omit the extension
e63b09e
to
de87561
Compare
b648666
to
f1ddaa2
Compare
de87561
to
daedb98
Compare
2d0f1e8
to
3a0e8ce
Compare
cf46dd1
to
8cd1c2f
Compare
1cbcb92
to
532c167
Compare
8cd1c2f
to
cdf7134
Compare
532c167
to
3121296
Compare
4cfda86
to
e70531a
Compare
3121296
to
64e6b9c
Compare
926dc37
to
d39970f
Compare
64e6b9c
to
1a0d6c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of comments first
.gitignore
Outdated
@@ -7,6 +7,7 @@ coverage | |||
build | |||
css/rheostat.css | |||
.nyc_output | |||
css/styles.css |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't we change this naming?
package.json
Outdated
@@ -71,6 +73,7 @@ | |||
}, | |||
"dependencies": { | |||
"airbnb-prop-types": "^2.10.0", | |||
"clean-css": "^4.1.11", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, not a dep, let's remove this package from here, it's already in dev deps
1a0d6c4
to
eedb9a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
d39970f
to
8eaa55e
Compare
eedb9a2
to
f5bd378
Compare
Adds
storybook:css
command to package JSON which instantiates the storybook withreact-with-styles-css-interface
.Builds off of
#162
#163