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

Styling kendo textbox container's floating label using Material theme

1 Answer 207 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 24 Jan 2020, 10:45 AM

Hi there, I'm having issues trying to change the color of the floating label. When I have a black background, the floating label cannot be seen because it is also black and blends in with the background.

Example in stack blitz https://stackblitz.com/edit/angular-kendo-textbox-material-black-background

How can I change the color of the floating label? Thanks.

Kind regards,

Andy

1 Answer, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 1
answered on 24 Jan 2020, 11:01 AM

Nevermind, I found the solution. I was missing ::ng-deep on the styles...

Working CSS

::ng-deep .k-label {
  color: white !important;
}

Tags
TextBox
Asked by
Andrew
Top achievements
Rank 1
Answers by
Andrew
Top achievements
Rank 1
Share this question
or