Skip to content

Instantly share code, notes, and snippets.

@jeroenvisser101
Last active May 9, 2023 01:31
Show Gist options
  • Save jeroenvisser101/9254cf27df85cf1c853aee17e4b49766 to your computer and use it in GitHub Desktop.
Save jeroenvisser101/9254cf27df85cf1c853aee17e4b49766 to your computer and use it in GitHub Desktop.
Hide Safari contacts auto-fill when [autocomplete="off"]
input[autocomplete="off"]::-webkit-contacts-auto-fill-button {
visibility: hidden;
display: none !important;
pointer-events: none;
height: 0;
width: 0;
margin: 0;
}
@AliveDD
Copy link

AliveDD commented Feb 4, 2020

Hello, you can try use autocomplete="new-password" - its crutch, but its works for me

@Gurvinder-Abhaypal
Copy link

it still is flaky and might not work for different versions

@oleh-evolutn
Copy link

input[autocomplete="off"]::-webkit-contacts-auto-fill-button,
input[autocomplete="off"]::-webkit-credentials-auto-fill-button {
visibility: hidden;
display: none !important;
pointer-events: none;
height: 0;
width: 0;
margin: 0;
}

It also works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment