Skip to content

Commit 75fc126

Browse files
committed
icons updated
1 parent a0220e1 commit 75fc126

File tree

3 files changed

+36
-7
lines changed

3 files changed

+36
-7
lines changed

src/CloseIcon.jsx

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,23 @@ import React from 'react'
22

33
export default function CloseIcon() {
44
return (
5-
<svg className='msl-close-icn'>
6-
<line x1='0' y1='0' x2='15' y2='15' />
7-
<line x1='0' y1='15' x2='15' y2='0' />
5+
<svg viewBox='0 0 10 10' className='msl-close-icn'>
6+
<line
7+
stroke='currentColor'
8+
strokeLinecap='round'
9+
x1='0'
10+
y1='0'
11+
x2='10'
12+
y2='10'
13+
/>
14+
<line
15+
stroke='currentColor'
16+
strokeLinecap='round'
17+
x1='0'
18+
y1='10'
19+
x2='10'
20+
y2='0'
21+
/>
822
</svg>
923
)
1024
}

src/DownIcon.jsx

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,23 @@ import React from 'react'
22

33
export default function DownIcon() {
44
return (
5-
<svg className='msl-arrow-icn'>
6-
<line x1='10' y1='15' x2='2' y2='7' />
7-
<line x1='18' y1='7' x2='10' y2='15' />
5+
<svg viewBox='0 0 20 20' className='msl-arrow-icn'>
6+
<line
7+
stroke='currentColor'
8+
strokeLinecap='round'
9+
x1='10'
10+
y1='14'
11+
x2='4'
12+
y2='8'
13+
/>
14+
<line
15+
stroke='currentColor'
16+
strokeLinecap='round'
17+
x1='16'
18+
y1='8'
19+
x2='10'
20+
y2='14'
21+
/>
822
</svg>
923
)
1024
}

src/MultiSelect.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function MultiSelect({
151151

152152
setValue(preDefinedValue)
153153
// close on option select
154-
closeOnSelect && setMenuOpen(false)
154+
closeOnSelect && singleSelect && setMenuOpen(false)
155155
}, [defaultValue])
156156

157157
const setNewValue = (val) => {
@@ -176,6 +176,7 @@ function MultiSelect({
176176
}
177177
return { label, value }
178178
}
179+
179180
const addValue = (newValObj) => {
180181
let tmp = [...value]
181182
if (singleSelect) {

0 commit comments

Comments
 (0)