This seems to be due to the icons’ SVG symbols having hard-coded `width`
and `height` attributes, which prevents resizing with CSS. I believe the
`width` and `height` should either be removed, or set on the inline SVG
(which can be a bit tedious).
Screenshot:
Relevant code:
https://github.com/django/django/blob/da8fa764134980ee1079f790cda6616f32cf9c44/django/contrib/admin/templates/admin/base.html#L118-L122
--
Ticket URL: <https://code.djangoproject.com/ticket/34093>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "Screenshot 2022-10-13 at 17.44.39.png" added.
Old description:
> The new admin theme switcher’s icon is a fixed 16x16px, regardless of the
> browser’s configured font size. It would be better for users requiring
> larger text if icons resized as well.
>
> This seems to be due to the icons’ SVG symbols having hard-coded `width`
> and `height` attributes, which prevents resizing with CSS. I believe the
> `width` and `height` should either be removed, or set on the inline SVG
> (which can be a bit tedious).
>
> Screenshot:
>
> Relevant code:
> https://github.com/django/django/blob/da8fa764134980ee1079f790cda6616f32cf9c44/django/contrib/admin/templates/admin/base.html#L118-L122
New description:
The new admin theme switcher’s icon is a fixed 16x16px, regardless of the
browser’s configured font size. It would be better for users requiring
larger text if icons resized as well.
This seems to be due to the icons’ SVG symbols having hard-coded `width`
and `height` attributes, which prevents resizing with CSS. I believe the
`width` and `height` should either be removed, or set on the inline SVG
(which can be a bit tedious).
Screenshot: https://code.djangoproject.com/raw-
attachment/ticket/34093/Screenshot%202022-10-13%20at%2017.44.39.png
Relevant code:
https://github.com/django/django/blob/da8fa764134980ee1079f790cda6616f32cf9c44/django/contrib/admin/templates/admin/base.html#L118-L122
--
--
Ticket URL: <https://code.djangoproject.com/ticket/34093#comment:1>
* cc: Sarah Abderemane (added)
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/34093#comment:2>
* owner: nobody => Sarah Abderemane
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/34093#comment:3>
* owner: Sarah Abderemane => Colm O'Connor
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/16179 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34093#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"37c5b8c07be104fd5288cd87f101e48cb7a40298" 37c5b8c0]:
{{{
#!CommitTicketReference repository=""
revision="37c5b8c07be104fd5288cd87f101e48cb7a40298"
Fixed #34093 -- Changed width/height of switch button icons to use rem
units in admin.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34093#comment:5>