From 3a14dcdabd0843b231cf29193f9259ce0e85d331 Mon Sep 17 00:00:00 2001 From: "madhu.sr" <madhu.sr@vtigersolutions.com> Date: Thu, 21 Mar 2024 11:23:19 +0530 Subject: [PATCH] #Fixes::158862942::madhusr::When we mousehover on the any of the multipicklist value ,value disappears --- layouts/v7/modules/Vtiger/resources/Field.js | 3 +++ layouts/v7/modules/Vtiger/uitypes/MultiPicklist.tpl | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/layouts/v7/modules/Vtiger/resources/Field.js b/layouts/v7/modules/Vtiger/resources/Field.js index 3c5bda8be..40b778a71 100644 --- a/layouts/v7/modules/Vtiger/resources/Field.js +++ b/layouts/v7/modules/Vtiger/resources/Field.js @@ -420,6 +420,9 @@ Vtiger_Field_Js('Vtiger_Multipicklist_Field_Js',{},{ if (picklistColor) { className = '.picklistColor_'+fieldName+'_'+option.replace(' ', '_'); html += className+'{background-color: '+picklistColor+' !important;}'; + + className = className + '.select2-highlighted'; + html += className+'{white: #ffffff !important; background-color: #337ab7 !important;}'; } } html +='<\style>'; diff --git a/layouts/v7/modules/Vtiger/uitypes/MultiPicklist.tpl b/layouts/v7/modules/Vtiger/uitypes/MultiPicklist.tpl index 593d83b42..9867ae704 100644 --- a/layouts/v7/modules/Vtiger/uitypes/MultiPicklist.tpl +++ b/layouts/v7/modules/Vtiger/uitypes/MultiPicklist.tpl @@ -33,7 +33,17 @@ {assign var=CLASS_NAME value="{$FIELD_MODEL->getFieldName()}_{$PICKLIST_NAME|replace:' ':'_'}"} .picklistColor_{$CLASS_NAME} { background-color: {$PICKLIST_COLORS[$PICKLIST_NAME]} !important; + {if isset($PICKLIST_COLORS[$PICKLIST_NAME])} + background-color: {$PICKLIST_COLORS[$PICKLIST_NAME]} !important; + {if $PICKLIST_COLORS[$PICKLIST_NAME] eq '#ffffff'} + color: #000000 !important; + {/if} + {/if} } + .picklistColor_{$CLASS_NAME}.select2-highlighted { + white: #ffffff !important; + background-color: #337ab7 !important; + } {/foreach} </style> {/if} -- GitLab