Skip to content

Commit

Permalink
fix(multiselect): fix warn icon on inline
Browse files Browse the repository at this point in the history
  • Loading branch information
aledavila committed Jul 28, 2022
1 parent d263183 commit 6a20132
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/react/src/components/MultiSelect/MultiSelect.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,21 @@ export default {
'MultiSelect.Filterable': MultiSelect.Filterable,
},
argTypes: {
invalid: {
control: 'boolean',
},
size: {
options: ['sm', 'md', 'lg'],
control: { type: 'select' },
},
type: {
options: ['default', 'inline'],
control: { type: 'select' },
},
warn: {
control: 'boolean',
},
warnText: { control: 'text' },
},
};

Expand Down
2 changes: 2 additions & 0 deletions packages/styles/scss/components/list-box/_list-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ $list-box-menu-width: rem(300px);
}

.#{$prefix}--list-box[data-invalid].#{$prefix}--list-box--inline
.#{$prefix}--list-box__field,
.#{$prefix}--list-box.#{$prefix}--list-box--warning.#{$prefix}--list-box--inline
.#{$prefix}--list-box__field {
padding-right: rem(56px);
}
Expand Down

0 comments on commit 6a20132

Please sign in to comment.