From 10c7c7320baf1c655fcb91202169d77725c9c4bd Mon Sep 17 00:00:00 2001 From: Salvo Polizzi Date: Thu, 18 Jan 2024 10:21:12 +0100 Subject: [PATCH] Fixed #35121 -- Corrected color for links in the admin. Thanks Collin Anderson for the report. Regression in 6ad2738a8f32b94cbae742f212080fadf2dee421. --- django/contrib/admin/static/admin/css/base.css | 2 +- docs/releases/5.0.2.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/django/contrib/admin/static/admin/css/base.css b/django/contrib/admin/static/admin/css/base.css index aaa9c3441a..daf4699cac 100644 --- a/django/contrib/admin/static/admin/css/base.css +++ b/django/contrib/admin/static/admin/css/base.css @@ -102,7 +102,7 @@ body { /* LINKS */ a:link, a:visited { - color: var(--body-fg); + color: var(--link-fg); text-decoration: none; transition: color 0.15s, background 0.15s; } diff --git a/docs/releases/5.0.2.txt b/docs/releases/5.0.2.txt index facfed26f5..a5e2b6eee4 100644 --- a/docs/releases/5.0.2.txt +++ b/docs/releases/5.0.2.txt @@ -12,3 +12,6 @@ Bugfixes * Reallowed, following a regression in Django 5.0.1, filtering against local foreign keys not included in :attr:`.ModelAdmin.list_filter` (:ticket:`35087`). + +* Fixed a regression in Django 5.0 where links in the admin had an incorrect + color (:ticket:`35121`).