Skip to content

Commit

Permalink
Vertical alignment for navigation icon
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Dec 15, 2017
1 parent 1fc3992 commit 969b7a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions examples/Default/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,31 +55,31 @@ export default class extends PureComponent {
<SideNav.Nav defaultSelected={selected}>
<NavItem eventKey="home">
<NavIcon>
<i className="fa fa-fw fa-home" style={{ fontSize: '1.75em' }} />
<i className="fa fa-fw fa-home" style={{ fontSize: '1.75em', verticalAlign: 'middle' }} />
</NavIcon>
<NavText style={{ paddingRight: 32 }}>
Home
</NavText>
</NavItem>
<NavItem eventKey="devices">
<NavIcon>
<i className="fa fa-fw fa-line-chart" style={{ fontSize: '1.75em' }} />
<i className="fa fa-fw fa-line-chart" style={{ fontSize: '1.75em', verticalAlign: 'middle' }} />
</NavIcon>
<NavText style={{ paddingRight: 32 }}>
Devices
</NavText>
</NavItem>
<NavItem eventKey="reports">
<NavIcon>
<i className="fa fa-fw fa-list-alt" style={{ fontSize: '1.75em' }} />
<i className="fa fa-fw fa-list-alt" style={{ fontSize: '1.75em', verticalAlign: 'middle' }} />
</NavIcon>
<NavText style={{ paddingRight: 32 }}>
Reports
</NavText>
</NavItem>
<NavItem eventKey="settings">
<NavIcon>
<i className="fa fa-fw fa-cogs" style={{ fontSize: '1.5em' }} />
<i className="fa fa-fw fa-cogs" style={{ fontSize: '1.5em', verticalAlign: 'middle' }} />
</NavIcon>
<NavText style={{ paddingRight: 32 }}>
Settings
Expand Down
6 changes: 3 additions & 3 deletions examples/Styled/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,23 +127,23 @@ export default class extends PureComponent {
>
<NavItem eventKey="home">
<NavIcon>
<i className="fa fa-fw fa-home" style={{ fontSize: '1.75em' }} />
<i className="fa fa-fw fa-home" style={{ fontSize: '1.75em', verticalAlign: 'middle' }} />
</NavIcon>
<NavText style={{ paddingRight: 32 }}>
HOME
</NavText>
</NavItem>
<NavItem eventKey="devices">
<NavIcon>
<i className="fa fa-fw fa-line-chart" style={{ fontSize: '1.75em' }} />
<i className="fa fa-fw fa-line-chart" style={{ fontSize: '1.75em', verticalAlign: 'middle' }} />
</NavIcon>
<NavText style={{ paddingRight: 32 }}>
DEVICES
</NavText>
</NavItem>
<NavItem eventKey="reports">
<NavIcon>
<i className="fa fa-fw fa-list-alt" style={{ fontSize: '1.75em' }} />
<i className="fa fa-fw fa-list-alt" style={{ fontSize: '1.75em', verticalAlign: 'middle' }} />
</NavIcon>
<NavText style={{ paddingRight: 32 }}>
REPORTS
Expand Down

0 comments on commit 969b7a3

Please sign in to comment.