﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35065	Autocomplete field is not rendered with error color border.	Rigoberto Villalta	Rigoberto Villalta	"In Django Admin, if the validations of an autocomplete fields fails, the border of the input field isn't´n of the error color (#ba2121 by default).

[[Image(ticket:35065:django-admin-sample.PNG)]]

Why? Because in that case the  {{{select html element}}} is hidden.

You can test it int this repo [https://github.com/Rigo-Villalta/django-autocomplete-error-not-visible].

Solution: I think the best solution is to add to the end of the file ''/static/admin/css/autocomplete.css'' the following rule:


{{{
.errors .select2-selection {
    border: 1px solid var(--error-fg);
}
}}}

Someone could think that add the selector to the '' base.css'' file could works, but for inheritance doesn't work.

I will push the pull request in a minutes, but I am not sure if is the best solution."	Bug	closed	contrib.admin	4.2	Normal	fixed	Django 5.0, Django 4.2, Django Admin		Ready for checkin	1	0	0	0	1	1
