How to replace default pink color height lighter in dropdown

Hi,

How to change the drop down pink color height lighter and selected text color in drop down and in multiselect drop down





5 Replies 1 reply marked as answer

BC Berly Christopher Syncfusion Team March 18, 2021 10:45 AM UTC

Hi Sneha, 
  
Greetings from Syncfusion support. 
  
We can change the focus color and selected text color in the DropDownList and MultiSelect with help of CSS styles as mentioned below. 
  
DropDownList: 
  
.e-custom.e-input-group:not(.e-float-icon-left):not(.e-float-input)::before, 
.e-custom.e-input-group:not(.e-float-icon-left):not(.e-float-input)::after { 
  height1px; 
  backgroundblue; 
} 
.e-custom .e-dropdownbase .e-list-item.e-active, 
.e-custom .e-dropdownbase .e-list-item.e-active.e-hover { 
  colorblue; 
} 
<ejs-dropdownlist 
id="games" 
#sample1 
cssClass="e-custom" 
[dataSource]="sportsData" 
[fields]="localFields" 
[placeholder]="localWaterMark" 
[popupHeight]="height" 
></ejs-dropdownlist> 
 
  
Screenshot: 
 
  
MultiSelect: 
.e-custommultiselect 
  .e-input-group.e-control-wrapper:not(.e-float-icon-left):not(.e-float-input)::before, 
.e-custommultiselect 
  .e-input-group.e-control-wrapper:not(.e-float-icon-left):not(.e-float-input)::after { 
  height1px; 
  backgroundblue; 
  bottom-1px; 
} 
.e-custommultiselect .e-checkbox-wrapper .e-frame.e-check, 
.e-css.e-checkbox-wrapper .e-frame.e-check { 
  background-colorblue; 
} 
 
 
<ejs-multiselect 
id="multiselect" 
cssClass="e-custommultiselect" 
[dataSource]="sportsData" 
[fields]="localFields" 
[allowFiltering]="allowFiltering" 
[placeholder]="localWaterMark" 
[popupHeight]="height" 
mode="CheckBox" 
></ejs-multiselect> 
 
Screenshot: 
 
  
  
Else, if you want to change the UI colour of the component, we suggest you to use our Theme Studio option. By using this, you can customize the component based on the application needs and download and make use of in the application. 
  
  
To know how to use theme studio, please follow the instructions provided in the below documentation.  
  
Regards, 
Berly B.C 


Marked as answer

SN sneha replied to Berly Christopher March 23, 2021 06:53 AM UTC

Hi Sneha, 
  
Greetings from Syncfusion support. 
  
We can change the focus color and selected text color in the DropDownList and MultiSelect with help of CSS styles as mentioned below. 
  
DropDownList: 
  
.e-custom.e-input-group:not(.e-float-icon-left):not(.e-float-input)::before, 
.e-custom.e-input-group:not(.e-float-icon-left):not(.e-float-input)::after { 
  height1px; 
  backgroundblue; 
} 
.e-custom .e-dropdownbase .e-list-item.e-active, 
.e-custom .e-dropdownbase .e-list-item.e-active.e-hover { 
  colorblue; 
} 
<ejs-dropdownlist 
id="games" 
#sample1 
cssClass="e-custom" 
[dataSource]="sportsData" 
[fields]="localFields" 
[placeholder]="localWaterMark" 
[popupHeight]="height" 
></ejs-dropdownlist> 
 
  
Screenshot: 
 
  
MultiSelect: 
.e-custommultiselect 
  .e-input-group.e-control-wrapper:not(.e-float-icon-left):not(.e-float-input)::before, 
.e-custommultiselect 
  .e-input-group.e-control-wrapper:not(.e-float-icon-left):not(.e-float-input)::after { 
  height1px; 
  backgroundblue; 
  bottom-1px; 
} 
.e-custommultiselect .e-checkbox-wrapper .e-frame.e-check, 
.e-css.e-checkbox-wrapper .e-frame.e-check { 
  background-colorblue; 
} 
 
 
<ejs-multiselect 
id="multiselect" 
cssClass="e-custommultiselect" 
[dataSource]="sportsData" 
[fields]="localFields" 
[allowFiltering]="allowFiltering" 
[placeholder]="localWaterMark" 
[popupHeight]="height" 
mode="CheckBox" 
></ejs-multiselect> 
 
Screenshot: 
 
  
  
Else, if you want to change the UI colour of the component, we suggest you to use our Theme Studio option. By using this, you can customize the component based on the application needs and download and make use of in the application. 
  
  
To know how to use theme studio, please follow the instructions provided in the below documentation.  
  
Regards, 
Berly B.C 


Hi Berly,

Thanks for the support. I am able to customize CSS.

Regards,
Sneha


BC Berly Christopher Syncfusion Team March 24, 2021 03:54 AM UTC

Hi Sneha, 
  
Please let us know if you need further assistance on this. 
  
Regards, 
Berly B.C 



SN sneha March 24, 2021 04:48 AM UTC

Hi Berly,

How can i change the theme color pink to black for example border out line, date picker ,slider, dropdown etc . changing all sync fusion component theme color?

Thanks,
Sneha


BC Berly Christopher Syncfusion Team March 24, 2021 09:24 AM UTC

Hi Sneha, 
  
We have provided various theme support for our EJ2 Syncfusion components. So, you can use it based on the application needs. 
  
1.       Bootstrap  
2.       Bootstrap v4  
3.       Material 
4.       Fabric  
5.       High contrast  
  
Please find the multiple themes from the below demo link and option provided in the top right corner of the page name as “Choose Theme”. 
  
 
  
  
Please find the CDN link for the styles which is used to render the component in provided themes.  
  
Material theme: 
<link rel='nofollow' href=" https://cdn.syncfusion.com/ej2/material.css" rel="stylesheet" /> 
Bootstrap themes: 
<link rel='nofollow' href=" https://cdn.syncfusion.com/ej2/bootstrap4.css" rel="stylesheet" /> 
<link rel='nofollow' href=" https://cdn.syncfusion.com/ej2/bootstrap.css" rel="stylesheet" /> 
Highcontrast theme: 
<link rel='nofollow' href=" https://cdn.syncfusion.com/ej2/highcontrast.css" rel="stylesheet" /> 
Fabric theme: 
<link rel='nofollow' href=" https://cdn.syncfusion.com/ej2/fabric.css" rel="stylesheet" /> 
 
  
As we mentioned earlier, change the UI colour of the component, we suggest you to use our Theme Studio option. By using this, you can customize the component based on the application needs and download and make use of in the application.  
  
  
  
Regards, 
Berly B.C 


Loader.
Up arrow icon