Changing background color of md-autocomplete

853 Views Asked by At

I am trying to implement md-autocomplete using Angular Materials.

How do I change the background color to white?

Approach 1: I tried to use $mdThemingProvide but it is changing the background of the input box.

Approach 2: I also tried to change color of the form.

Both the approaches didn't work. You can see the code for both below.

What i want to do is to change the background of the md-autocomplete form to white.

How do I do this?

Codes:

Aprroach 1:

.config(function($mdThemingProvider) {

  $mdThemingProvider.theme('default')

})

Approach 2:

<form ng-submit = "$event.preventDefault()"  style="background:White;"> 

The output can be seen here.The arrow indicates the background whose color i want to change to white.

0

There are 0 best solutions below