Change ion-input background color for safari autofill

I want to make the autofill black or white anything but this hideous yellow.

From what I have found if it was a regular input this would work:

input:-webkit-autofill:focus {
-webkit-box-shadow: 0 0 0 1000px white inset;
-webkit-text-fill-color: #333;

But would like to do this with ionic.