Issue #4 open

Add class vTextField to autocomplete input

Dmitri Bogomolov
created an issue

I think it would be logical to add class vTextField to autocomplete input to make it look like other inputs in django admin app. In particular, with default CSS the blank input appears too short.

Comments (1)

  1. Etienne Desautels repo owner
    • changed status to open

    Sorry for the delay.

    I took a look at your proposition when I receive it, but I was not sure what to think with it. One month later I revisited it and I'm still not sure what we should do.

    First, I agree that there's a problem, autocomplete fields in admin should have the same appearance as normal input fields. I didn't see this problem because I customized a lot my admin CSS, taking care of the autocomplete fields appearance at the same time.

    Now my problem with your patch is that autocomplete fields can be use outside of the admin, so I don't think they should have the vTextField by default. For the moment, I didn't found an elegant solution to add the class only when in admin. If you have an idea, share it!

  2. Log in to comment