I have found only three places in django.contrib.admin that would need a
CSS update, so I believe it is an easy fix:
{{{
// base.css:485
input:not([type]),
...
{
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 5px 6px;
margin-top: 0;
color: var(--body-fg);
background-color: var(--body-bg);
}
// base.css:495
input:not([type]):focus,
...
{
border-color: var(--body-quiet-color);
}
// responsive.css:177
.form-row input:not([type]),
...
{
box-sizing: border-box;
margin: 0;
padding: 6px 8px;
min-height: 2.25rem;
font-size: 0.875rem;
}
}}}
I create this ticket after having discussed the issue here
https://github.com/adamchainz/django-minify-html/issues/165
--
Ticket URL: <https://code.djangoproject.com/ticket/35008>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Mariusz Felisiak):
It was already proposed, check out
[https://github.com/django/django/pull/17183#issuecomment-1688888212
comment]. I'm pretty sure that we will remove them in some cleanup PR
titled ''"Removed unused CSS rules ...'"'. We normally don't add CSS rules
not used by Django itself.
--
Ticket URL: <https://code.djangoproject.com/ticket/35008#comment:1>
* owner: nobody => aman0408
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/35008#comment:2>
* owner: Aman Agrawal => monosans
* has_patch: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Tentatively accepted.
[https://github.com/django/django/pull/17183/ PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/35008#comment:3>
* stage: Unreviewed => Accepted
Comment:
Tentatively accepted.
--
Comment (by Raphaël Stefanini):
What about re-opening this PR then?
https://github.com/django/django/pull/17183
--
Ticket URL: <https://code.djangoproject.com/ticket/35008#comment:4>
Comment (by Mariusz Felisiak):
Raphaël, feel-free to send a new PR (based on PR17183). We need to at
least add a comment to the CSS files.
--
Ticket URL: <https://code.djangoproject.com/ticket/35008#comment:5>
Comment (by Raphaël Stefanini):
New PR with added comments https://github.com/django/django/pull/17631
--
Ticket URL: <https://code.djangoproject.com/ticket/35008#comment:6>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/35008#comment:7>
* owner: Aman Agrawal => Raphaël Stefanini
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/35008#comment:8>
* owner: Raphaël Stefanini => Mariusz Felisiak
--
Ticket URL: <https://code.djangoproject.com/ticket/35008#comment:9>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"5c6906cef4d4858bfe8d00de94eb797aa40b31fd" 5c6906c]:
{{{
#!CommitTicketReference repository=""
revision="5c6906cef4d4858bfe8d00de94eb797aa40b31fd"
Fixed #35008 -- Added CSS rule for <input> HTML tags with no type.
Minifiers remove the default (text) "type" attribute from "input" HTML
tags. This adds input:not([type]) to make the CSS stylesheet work the
same.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35008#comment:10>