Skip to content

Commit

Permalink
fix(plasma-react, multiselect): fix margin for selected options (#3704)
Browse files Browse the repository at this point in the history
  • Loading branch information
aboissinot-coveo committed Apr 29, 2024
1 parent 05f8e2f commit 7b2bfd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions packages/style/scss/components/multiselect-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
.selected-options-container {
display: inline-flex;
flex-flow: row wrap;
margin-bottom: $spacing;

.selected-option,
.sortable-selected-option {
Expand All @@ -53,16 +54,10 @@
}

.multiselect-empty {
margin-bottom: $spacing;
color: var(--deprecated-medium-grey);
line-height: $button-small-height + 2 * $button-border-width;
}

.selected-option:last-child,
.sortable-selected-option:last-child {
margin-bottom: $spacing;
}

.remove-all-selected-options {
align-self: flex-start;
padding: $dropdown-multiselect-items-margin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {MultiSelectConnected} from '@coveord/plasma-react';
const Demo = () => (
<MultiSelectConnected
id="mutli-select-1"
multiSelectStyle={{width: '100%', maxWidth: '400px'}}
items={[
{value: 'one', displayValue: 'Option 1'},
{value: 'two', displayValue: 'Option 2'},
Expand Down

0 comments on commit 7b2bfd6

Please sign in to comment.