Skip to content

Commit

Permalink
style(ButtonGroup): Reorder some things
Browse files Browse the repository at this point in the history
  • Loading branch information
kasbah committed Sep 23, 2017
1 parent a3184c1 commit 0e5802a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/elements/Button/ButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ function ButtonGroup(props) {
useKeyOnly(secondary, 'secondary'),
useKeyOnly(toggle, 'toggle'),
useKeyOnly(vertical, 'vertical'),
useValueAndKey(floated, 'floated'),
useKeyOrValueAndKey(attached, 'attached'),
useValueAndKey(floated, 'floated'),
useWidthProp(widths),
'buttons',
className,
Expand Down
4 changes: 2 additions & 2 deletions test/specs/elements/Button/ButtonGroup-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ describe('ButtonGroup', () => {
widthClass: 'buttons',
})

common.propKeyOrValueAndKeyToClassName(ButtonGroup, 'attached', ['left', 'right', 'top', 'bottom'])

common.propKeyAndValueToClassName(ButtonGroup, 'floated', SUI.FLOATS)

common.propKeyOnlyToClassName(ButtonGroup, 'basic')
Expand All @@ -32,6 +30,8 @@ describe('ButtonGroup', () => {
common.propKeyOnlyToClassName(ButtonGroup, 'toggle')
common.propKeyOnlyToClassName(ButtonGroup, 'vertical')

common.propKeyOrValueAndKeyToClassName(ButtonGroup, 'attached', ['left', 'right', 'top', 'bottom'])

common.propValueOnlyToClassName(ButtonGroup, 'color', SUI.COLORS)
common.propValueOnlyToClassName(ButtonGroup, 'size', SUI.SIZES)
})

0 comments on commit 0e5802a

Please sign in to comment.