Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

autocomplete="on" on input fields levels custom styles with browser styles #30

Open
evdama opened this issue Aug 9, 2019 · 1 comment

Comments

@evdama
Copy link

evdama commented Aug 9, 2019

Using autocomplete="on" on an input field overrides custom styles on an input field with browser default styles. The code to reproduce below:

    <div>
      <label for="full-name" class="block text-grey-900  font-bold">
        Full Name
      </label>
    </div>


    <div>
      <input id="full-name" type="text" placeholder="Jane Doe" autocomplete="on" class="form-input bg-teal-300 border border-blue-600 rounded w-full py-2 px-4 text-grey-800 leading-tight">
    </div>

I can make it work with https://css-tricks.com/snippets/css/change-autocomplete-styles-webkit-browsers/ but that's basically duplicating my styles in non-tw manner.

@psibean
Copy link

psibean commented Jun 22, 2020

Yep, this is slightly annoying

It makes sense from a UX perspective the autocomplete style is intended to prompt the user to double-check the fields that were autocompleted. It would be nice if tailwind provided a convenient means to clear these styles and apply our own, similar to focus, active, etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants