Skip to content

Commit

Permalink
improve css-custom-config example
Browse files Browse the repository at this point in the history
  • Loading branch information
lucleray committed Nov 5, 2018
1 parent 8307f0f commit 7964187
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion examples/css-custom-config/other-components/button.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export default () => <div className="button-blue">Blue button</div>
export default ({ children }) => (
<button className="blue-button">{children}</button>
)
8 changes: 7 additions & 1 deletion examples/css-custom-config/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import '../style.css'
import BlueButton from '../other-components/button'

export default () => <div className="example">Hello World!</div>
export default () => (
<div>
<div className="example">Hello World!</div>
<BlueButton>Click me</BlueButton>
</div>
)
2 changes: 1 addition & 1 deletion examples/css-custom-config/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
font-size: 50px;
}

.button-blue {
.blue-button {
color: blue;
}

Expand Down

0 comments on commit 7964187

Please sign in to comment.