Skip to content

Commit 8f79ebe

Browse files
author
joeshub
committed
code cleanup
1 parent 78b5e9d commit 8f79ebe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

09-stylable/button/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
new HtmlWebpackPlugin({ inject: true, template: '../../templates/server.ejs' }),
2424
new webpack.HotModuleReplacementPlugin(),
2525
new webpack.NoEmitOnErrorsPlugin(),
26-
new StylablePlugin({ injectBundleCss: true })
26+
new StylablePlugin({ injectBundleCss: true, nsDelimiter: '_' })
2727
],
2828
module: {
2929
rules: [

10-glamor/button/Button.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ export class Button extends Component {
3333
transition: 'background-color 300ms',
3434
transform: 'translateZ(0)',
3535
backfaceVisibility: 'visible',
36-
backgroundColor: `${depressed ? bgDepressed : bgColor}`,
36+
backgroundColor: depressed ? bgDepressed : bgColor,
3737
':hover': {
38-
backgroundColor: `${depressed ? bgDepressed : bgHover}`
38+
backgroundColor: depressed ? bgDepressed : bgHover
3939
}
4040
})
4141

0 commit comments

Comments
 (0)