TextBox PlaceHolder color

1 Answer 93 Views
TextBox
Ilan
Top achievements
Rank 1
Iron
Iron
Veteran
Ilan asked on 28 Jun 2022, 01:02 PM

How can I change the PlaceHolder inner text color? 

 

Nothing seems to be working...

<TelerikTextBox Value="@_searchVariable" PlaceHolder="Search Variables" ValueChanged="@(BuildTree)"></TelerikTextBox>

 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 30 Jun 2022, 12:23 PM

Use ::placeholder with higher specificity (to override our theme styles):

    span.k-input ::placeholder,
    span.k-picker ::placeholder {
        color: red;
    }

 

Tags
TextBox
Asked by
Ilan
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dimo
Telerik team
Share this question
or