0

So I have a ui:inputSelect tag and when I use auto fill, the background color changes to yellow. How do I get rid of this feature and just keep the white background.

enter image description here

2
  • Are you using a form? Commented Feb 26, 2018 at 12:29
  • no. It is in my lightning component .cmp Commented Feb 26, 2018 at 12:43

1 Answer 1

3

You need to apply some custom css to remove this. I have one for iinputText you can add it your UI tag.

/* Change the white to any color ;) */ input:-webkit-autofill { -webkit-box-shadow: 0 0 0 30px white inset; } 

Additionally, you can use this to change the text color:

/*Change text in autofill textbox*/ input:-webkit-autofill { -webkit-text-fill-color: yellow !important; } 

As this is related to browser and not with lightning.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.