Skip to content

Commit 4a3eaa3

Browse files
committed
Change className to clsx in dual-list-select
1 parent 7701125 commit 4a3eaa3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/pf4-component-mapper/src/files/dual-list-select.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,14 @@ const List = ({ value, optionClick, noOptionsTitle, filterValue, filterValueText
5959
value={value}
6060
{...ListItemProps}
6161
{...ListItemPropsItem}
62-
className={`ddorg__pf4-component-mapper__dual-list-select-option ${
63-
selectedValues.includes(value) ? 'ddorg__pf4-component-mapper__dual-list-select-option-selected' : ''
64-
}`}
62+
className={clsx(
63+
'ddorg__pf4-component-mapper__dual-list-select-option',
64+
{
65+
'ddorg__pf4-component-mapper__dual-list-select-option-selected': selectedValues.includes(value)
66+
},
67+
ListItemProps.className,
68+
ListItemPropsItem.className
69+
)}
6570
>
6671
{label}
6772
</div>

0 commit comments

Comments
 (0)