Skip to content

Commit

Permalink
fix(numberfield): fix 100% width issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbien committed Apr 9, 2020
1 parent 876c17d commit ec9c177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/NumberField/NumberField.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const NumberField = React.forwardRef(function NumberField(props, ref) {
disabled={disabled}
type='number'
ref={ref}
width='100%'
fullWidth
onBlur={onBlur}
/>
<StyledButtonWrapper isFlat={variant === 'flat'}>
Expand Down
7 changes: 1 addition & 6 deletions src/components/Tabs/Tabs.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,7 @@ class TabsDemo extends React.Component {
<TabPanel value={0} activeTab={activeTab}>
<Fieldset label='Order:'>
<div style={{ padding: '0.5em 0 0.5em 0' }}>Amount:</div>
<NumberField
width='100%'
min={0}
value={0}
onChange={() => null}
/>
<NumberField width='100%' min={0} defaultValue={0} />
<Checkbox
style={{ marginTop: '1rem' }}
name='shipping'
Expand Down

0 comments on commit ec9c177

Please sign in to comment.