From dafbed9af586bd3973f24f332676a9dc8f501163 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 1 Dec 2023 09:45:57 +0100 Subject: [PATCH] Refs #35004 -- Restored the direction of arrows in admin selector boxes for RTL languages on mobile screens. Regression in 57c1dd466ff0d41760049d6818e82be9d767c7da. --- .../admin/static/admin/css/responsive_rtl.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/django/contrib/admin/static/admin/css/responsive_rtl.css b/django/contrib/admin/static/admin/css/responsive_rtl.css index 08a6cd7038c3..d23aa8799f5c 100644 --- a/django/contrib/admin/static/admin/css/responsive_rtl.css +++ b/django/contrib/admin/static/admin/css/responsive_rtl.css @@ -97,4 +97,20 @@ [dir="rtl"] .aligned .vCheckboxLabel { padding: 1px 5px 0 0; } + + [dir="rtl"] .selector-remove { + background-position: 0 0; + } + + [dir="rtl"] .active.selector-remove:focus, .active.selector-remove:hover { + background-position: 0 -20px; + } + + [dir="rtl"] .selector-add { + background-position: 0 -40px; + } + + [dir="rtl"] .active.selector-add:focus, .active.selector-add:hover { + background-position: 0 -60px; + } }