Open cuzzea opened 2 years ago
@cuzzea there is no.prop.to that but you can do.it with css pseudo selector (css depending on object property).
set a focused
property on the textfield. plug that prop on focus events. now set hint color in css based on thar prop
When it's focused is not an issue. I can change the color of the hint. The problem is when it's not selected and empty. In that case I can't change the color. In the image and code on top, I set all the properties of the css color (that I could find/think) to red, as you can see in the first image, the Hint text
is not red. That is the issue.
@cuzzea yes i understand that s why i gave you the hint to do it with pseudo selector css.
@cuzzea this pr fix this! https://github.com/nativescript-community/ui-material-components/pull/423
@farfromrefug well this fixes setting it by code but by css i have not been able to apply any styling of the component, i can't help with this because i don't know how to bind a component with css
@vallemar thanks I ll have to take a look at this
I am trying to set the hint text color when the input is inactive.
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
tns-ios
in package.jsonPlease, tell us how to recreate the issue in as much detail as possible.
I am trying to set the hint text color when the input is inactive.
want it to be red
like it is here, on focus
Is there any code involved?
HTML
CSS