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 ef82ce7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/elements/Button/ButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
META,
SUI,
useKeyOnly,
useValueAndKey,
useKeyOrValueAndKey,
useValueAndKey,
useWidthProp,
} from '../../lib'

Expand Down 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 ef82ce7

Please sign in to comment.