Skip to content

Commit

Permalink
add inverted prop
Browse files Browse the repository at this point in the history
  • Loading branch information
lipp committed Oct 12, 2016
1 parent 3226eea commit defb9be
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
16 changes: 16 additions & 0 deletions components/bottomnavigation/BottomNavigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,19 @@
}
color: $blue-dark;
}

.BottomNavigation-menu--inverted {
.BottomNavigation-menu-item {
background-color: $blue-dark;
svg {
fill: rgba(255, 255, 255, 0.73);
}
color: rgba(255, 255, 255, 0.73);
}
.BottomNavigation-menu-item.active {
svg {
fill: white;
}
color: white;
}
}
5 changes: 3 additions & 2 deletions components/bottomnavigation/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import React from 'react'
import {Link} from 'react-router'
import classNames from 'classnames'

export default class BottomNavigation extends React.Component {
render () {
const {children, links} = this.props
const {children, links, inverted} = this.props
return (
<div className='BottomNavigation'>
<div className='BottomNavigation-content'>
{children}
</div>
<div className='BottomNavigation-menu'>
<div className={classNames('BottomNavigation-menu', {'BottomNavigation-menu--inverted': inverted})}>
{links.map(link => (
<Link activeClassName='active' to={link.link} className='BottomNavigation-menu-item' key={link.text}>
{link.icon}
Expand Down

0 comments on commit defb9be

Please sign in to comment.