Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chandlerprall authored and cchaos committed Oct 13, 2020
1 parent 1ff92b8 commit edb5996
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src-docs/src/views/button/button_icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,27 @@ const colors = [
'success',
'warning',
'danger',
'disabled',
];

export default () => (
<EuiFlexGroup gutterSize="s" alignItems="center">
{colors.map((color) => (
{colors.map(color => (
<EuiFlexItem key={color} grow={false}>
<EuiButtonIcon
color={color}
onClick={() => window.alert('Button clicked')}
iconType="arrowRight"
aria-label="Next"
disabled={color === 'disabled' ? true : false}
/>
</EuiFlexItem>
))}
<EuiFlexItem grow={false}>
<EuiButtonIcon
onClick={() => window.alert('Button clicked')}
iconType="arrowRight"
aria-label="Next"
disabled
/>
</EuiFlexItem>
</EuiFlexGroup>
);

0 comments on commit edb5996

Please sign in to comment.