However there is a `field-box` class used in admin's `forms.css`
stylesheet:
{{{
fieldset .field-box {
float: left;
margin-right: 20px;
}
}}}
So, if you have a model with a field called `box`, then when it's
displayed on an Admin edit screen it is floated left and the next field
appears to its right:
[[Image(https://i.imgur.com/wYuausq.png)]]
I ''think'' that `field-box` is the only such potential conflict in
`forms.css`. I guess it should be renamed to something that does not start
with `field-`?
--
Ticket URL: <https://code.djangoproject.com/ticket/29248>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: elky (added)
* stage: Unreviewed => Accepted
Comment:
A note in the "backwards incompatible changes" section of the release
notes may be useful as that class has been there since Django 1.0
(7a9b55ddc4d49775a696d1d34629ebbad2499fa3).
--
Ticket URL: <https://code.djangoproject.com/ticket/29248#comment:1>
* owner: nobody => faheel
* status: new => assigned
Comment:
It does seem like `field-box` is the only potentially conflicting class in
`forms.css` as no other class starts with `field-`. My suggestion is to
rename it to either `fieldbox` or `field__box` (this one is based on the
[https://en.bem.info/methodology/quick-start/ BEM methodology]).
--
Ticket URL: <https://code.djangoproject.com/ticket/29248#comment:2>
Comment (by Faheel Ahmad):
Since classes in `forms.css` are in camel case, `fieldBox` seems to be the
appropriate choice to me. If anyone has any suggestion regarding this do
let me know. I'll have a PR ready in a few days.
--
Ticket URL: <https://code.djangoproject.com/ticket/29248#comment:3>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/9855 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/29248#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/29248#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"5d4d62bf4fe887fcd30f9f0449de07ae76ea5968" 5d4d62b]:
{{{
#!CommitTicketReference repository=""
revision="5d4d62bf4fe887fcd30f9f0449de07ae76ea5968"
Fixed #29248 -- Renamed admin CSS class field-box to fieldBox.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29248#comment:6>