This is a migrated thread and some comments may be shown as answers.

Override placeholder style

1 Answer 1628 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Bryan Smouse
Top achievements
Rank 1
Bryan Smouse asked on 17 May 2019, 07:33 PM

Hello, 

I am trying to set the color of the placeholder text that appears in the kendo-autocomplete input box when there is no text in the box.  It is currently a light grey and I would like to change it to white (#ffffff).  Is it possible to override this?  

Thanks,

Bryan Smouse

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 21 May 2019, 07:10 AM
Hi Bryan,

There is no built-in option to change the color of the placeholder, but this can be achieved using custom CSS. The ':placeholder' CSS selector applies to the placeholder text. The following rile will help us to modify the color of the placeholder of the AutoComplete component to blue:
kendo-autocomplete .k-searchbar ::placeholder{
  color: blue
 }

Check the example below to see the results:
https://stackblitz.com/edit/angular-hdm8mj-jndq1p?file=app/app.component.ts

I hope this helps. Let me know if any further assistance is required for Kendo UI for Angular.

Regards,
Martin
Progress Telerik
Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Nazareth
Top achievements
Rank 1
commented on 30 Aug 2021, 03:25 PM

Hi, 

I am looking for the same solution, but for a kendo-combobox control.

I tried:

kendo-combobox .k-searchbar ::placeholder{
    color: blue
   }

 

But the placeholder color remains as default.

 

Regards,

Nazareth

Tags
AutoComplete
Asked by
Bryan Smouse
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or