Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
fix(cleanup): code cleanup
Browse files Browse the repository at this point in the history
ensure the example in documentation doesnt break container barrier
  • Loading branch information
eddier committed Mar 23, 2017
1 parent 938c67a commit 548f281
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 22,450 deletions.
5,610 changes: 0 additions & 5,610 deletions src/assets/icon_mainav_dash.svg

This file was deleted.

5,610 changes: 0 additions & 5,610 deletions src/assets/icon_mainav_dash_hover.svg

This file was deleted.

5,610 changes: 0 additions & 5,610 deletions src/assets/icon_mainav_ops.svg

This file was deleted.

5,610 changes: 0 additions & 5,610 deletions src/assets/icon_mainav_ops_hover.svg

This file was deleted.

4 changes: 3 additions & 1 deletion src/components/LeftNav/LeftNav.examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Simple Card Example
const iconDashboard = require('../../assets/icon_mainav_dash_selected.svg');
const iconOperations = require('../../assets/icon_mainav_ops_selected.svg');
<div style={{height: '200px'}}>
<LeftNav>
<LeftNav style={{maxHeight: '200px', minHeight: '200px'}}>
<LeftNav.MenuItem active image={iconDashboard} />
<LeftNav.MenuItem image={iconOperations} />
</LeftNav>
Expand All @@ -15,6 +15,8 @@ Use the MenuItem subcomponent to place content. Use the active prop to set the
item to active styling. You can also use an onClick handler to deal with
navigating the user to the appropriate location.

Manually applied style on this component is only to prevent overrun inside of Styleguide.

#### Supported Fragments ####

```javascript
Expand Down
10 changes: 3 additions & 7 deletions src/components/LeftNav/LeftNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ class LeftNav extends React.Component {

render () {
return (
<div className='nav__left-container'>

<nav className='nav__left '>
{this.props.children}
</nav>

</div>
<nav className='nav__left ' {...this.props}>
{this.props.children}
</nav>
)
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/styles/components/left-nav.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
@import '../variables.css';
.nav__left-container {
}
.nav__left {
background: color(var(--cloudburst));
color: white;
Expand Down

0 comments on commit 548f281

Please sign in to comment.