File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ export const Option = <
405405 selectedOptionStyle === "check" &&
406406 ( ! isMulti || hideSelectedOptions === false ) ;
407407
408- const shouldHighlight = selectedOptionStyle === "color" ;
408+ const shouldHighlight = selectedOptionStyle === "color" && isSelected ;
409409
410410 const initialSx : SystemStyleObject = {
411411 ...menuItemStyles ,
@@ -417,13 +417,13 @@ export const Option = <
417417 fontSize : size ,
418418 paddingX : horizontalPaddingOptions [ size ] ,
419419 paddingY : verticalPaddingOptions [ size ] ,
420- ...( shouldHighlight && {
421- _selected : {
422- bg : selectedBg ,
423- color : selectedColor ,
424- _active : { bg : selectedBg } ,
425- } ,
426- } ) ,
420+ ...( shouldHighlight
421+ ? {
422+ bg : selectedBg ,
423+ color : selectedColor ,
424+ _active : { bg : selectedBg } ,
425+ }
426+ : { } ) ,
427427 } ;
428428
429429 const sx = chakraStyles ?. option
You can’t perform that action at this time.
0 commit comments