Skip to content

Commit 9db3fd4

Browse files
authored
fix: remove column gap and leave it to be customizable by user (#270)
- add a CSS/SASS variable instead to make it customizable
1 parent b8dc704 commit 9db3fd4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/multiple-select-vanilla/src/styles/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ $ms-drop-scrollbar-color: #c1c1c1 #f1f1f1 !default;
6868
$ms-drop-zindex: 1050 !default;
6969
$ms-input-focus-outline: none !default;
7070
$ms-infinite-empty-option-height: 20px !default;
71+
$ms-label-column-gap: 0 !default;
7172
$ms-label-margin-bottom: 0 !default;
7273
$ms-label-min-height: 1.25rem !default;
7374
$ms-label-padding: 0 0 0 2px !default;

packages/multiple-select-vanilla/src/styles/multiple-select.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
& + span {
6363
display: inline-flex;
6464
align-items: center;
65-
column-gap: 4px;
65+
column-gap: var(--ms-label-column-gap, $ms-label-column-gap);
6666
padding-left: var(--ms-label-text-padding-left, $ms-label-text-padding-left);
6767
}
6868
}
@@ -127,10 +127,10 @@
127127
display: flex;
128128
flex: 1;
129129
align-items: center;
130-
column-gap: 4px;
131130
white-space: nowrap;
132131
overflow: hidden;
133132
text-overflow: ellipsis;
133+
column-gap: var(--ms-label-column-gap, $ms-label-column-gap);
134134

135135
&.ms-placeholder {
136136
color: var(--ms-placeholder-color, $ms-placeholder-color);

0 commit comments

Comments
 (0)