Skip to content

Commit

Permalink
yarn locks, favicon, buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Nov 12, 2018
1 parent 1203f28 commit 0551ef8
Show file tree
Hide file tree
Showing 23 changed files with 8,981 additions and 26 deletions.
Binary file modified 1-rendering/public/favicon.ico
Binary file not shown.
1,107 changes: 1,107 additions & 0 deletions 1-rendering/yarn.lock

Large diffs are not rendered by default.

Binary file modified 2-composition/public/favicon.ico
Binary file not shown.
1,107 changes: 1,107 additions & 0 deletions 2-composition/yarn.lock

Large diffs are not rendered by default.

Binary file modified 3-state/public/favicon.ico
Binary file not shown.
6 changes: 4 additions & 2 deletions 3-state/src/exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ class Tabs extends React.Component {
render() {
return (
<div>
<div style={styles.activeTab}>Active Tab</div>
<div style={styles.tab}>Inactive tab</div>
<button style={styles.activeTab}>
Active Tab
</button>
<button style={styles.tab}>Inactive tab</button>

<div style={styles.panel}>Panel</div>
</div>
Expand Down
12 changes: 12 additions & 0 deletions 3-state/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,15 @@ body {
"Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
"Helvetica Neue", sans-serif;
}

button {
border: none;
font: inherit;
display: block;
margin: 0;
padding: 0;
}

:focus:not(:focus-visible) {
outline: none;
}
4 changes: 2 additions & 2 deletions 3-state/src/solution.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Tabs extends React.Component {
{this.props.data.map((tab, index) => {
let isActive = index === this.state.activeIndex;
return (
<div
<button
onClick={() => {
this.setState({ activeIndex: index });
}}
Expand All @@ -58,7 +58,7 @@ class Tabs extends React.Component {
}
>
{tab.name}
</div>
</button>
);
})}

Expand Down
Loading

0 comments on commit 0551ef8

Please sign in to comment.