And it has an unexpected underline on focus:
The misalignment & other spacing issues are particularly visible when
there are multiple buttons displayed, though it’s not clear to me whether
this actually happens in practice:
---
To reproduce this, access a model form with a user who only has "View"
permissions.
--
Ticket URL: <https://code.djangoproject.com/ticket/33833>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "close-button-admin.png" added.
* Attachment "close-button-focus.png" added.
* Attachment "close-button-group.png" added.
Old description:
> Picked up as part of reviewing #33728 /
> [https://github.com/django/django/pull/15734 PR #15734] – in the admin’s
> `submit_line.html` / `submit-row`, the Close button is misaligned:
>
> And it has an unexpected underline on focus:
>
>
> The misalignment & other spacing issues are particularly visible when
> there are multiple buttons displayed, though it’s not clear to me whether
> this actually happens in practice:
>
> ---
>
> To reproduce this, access a model form with a user who only has "View"
> permissions.
New description:
Picked up as part of reviewing #33728 /
[https://github.com/django/django/pull/15734 PR #15734] – in the admin’s
`submit_line.html` / `submit-row`, the Close button is misaligned:
[[Image(https://code.djangoproject.com/raw-attachment/ticket/33833/close-
button-admin.png)]]
And it has an unexpected underline on focus:
[[Image(https://code.djangoproject.com/raw-attachment/ticket/33833/close-
button-focus.png)]]
The misalignment & other spacing issues are particularly visible when
there are multiple buttons displayed, though it’s not clear to me whether
this actually happens in practice:
[[Image(https://code.djangoproject.com/raw-attachment/ticket/33833/close-
button-group.png)]]
This is also the case when buttons are displayed vertically in the
"mobile" viewports.
---
To reproduce this, access a model form with a user who only has "View"
permissions.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/33833#comment:1>
* stage: Unreviewed => Accepted
Comment:
Thanks for the report.
--
Ticket URL: <https://code.djangoproject.com/ticket/33833#comment:2>
* owner: nobody => Leonid Podriz
* status: new => assigned
* easy: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/33833#comment:3>
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/15860 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/33833#comment:4>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/33833#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"eae973df6671568a79f3e55b0c971078236100d4" eae973df]:
{{{
#!CommitTicketReference repository=""
revision="eae973df6671568a79f3e55b0c971078236100d4"
Fixed #33833 -- Corrected .closelink admin CSS.
Co-authored-by: Leonid Podriz <leonid...@pm.me>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33833#comment:6>