Skip to content

Commit

Permalink
fix: make sure we use a small button inside a input
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Jan 17, 2019
1 parent cc7fb2e commit d7b2af5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/dnb-ui-lib/src/components/button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const propTypes = {
type: PropTypes.string,
title: PropTypes.string,
variant: PropTypes.oneOf(['primary', 'secondary', 'tertiary', 'signal']),
size: PropTypes.oneOf(['medium', 'default', 'large']),
size: PropTypes.oneOf(['default', 'small', 'medium', 'large']),
icon: PropTypes.oneOfType([
PropTypes.string,
PropTypes.node,
Expand Down
3 changes: 2 additions & 1 deletion packages/dnb-ui-lib/src/components/input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,11 @@ class Submit extends PureComponent {
<Button
className="dnb-input__search-submit__button"
variant="secondary"
icon="search"
size="small"
onClick={this.onSubmitHandler}
onFocus={this.onFocusHandler}
onBlur={this.onBlurHandler}
icon="search"
{...params}
/>
</span>
Expand Down

0 comments on commit d7b2af5

Please sign in to comment.