question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Textinput change color inside box not working

See original GitHub issue

Hi,

Here I m try to change color of text inside textinput box. I m passing color in theme as props still is not working.

<TextInput theme={{ colors: { text: "white"}}} label="data" value={value} />

Help me please

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lukewalczakcommented, Oct 11, 2022

In v5, since there are new theme colors, you have to override the following colors:

  • flat input - onSurfaceVariant
  • outlined input - onSurface
0reactions
vinothmoorthkumarcommented, Oct 13, 2022

@lukewalczak Thank you,

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing background color of text box input not working ...
I am having a tough time with this javascript code to change the background color of a text input if the input ......
Read more >
placeholder - CSS: Cascading Style Sheets - MDN Web Docs
Placeholder text with sufficient color contrast may be interpreted as entered input. Placeholder text will also disappear when a person enters ...
Read more >
ion-input: Custom Input Value Type Styling and CSS Properties
Inputs offer two options for clearing the input based on how you interact with it. The first way is by adding the clearInput...
Read more >
How to Remove and Style the Border Around Text Input Boxes ...
Use outline: none to remove the ugly border color for a form field in Chrome. Learn also how to give your own style...
Read more >
CSS Forms - W3Schools
By default, some browsers will add a blue outline around the input when it gets focus (clicked on). You can remove this behavior...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found