From be7320b4fcfe13fbfb9d342cd88b1fbf8fd9ad34 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sat, 5 Oct 2024 16:46:19 +0330 Subject: [PATCH] Make CategoryTree arrow expansion work outside mw-content-{ltr,rtl} The old code relies on CSS Janus to transform the default case outside mw-content-{ltr,rtl} which can't be applied here so let's consider this case also by relying only on dir attributes, the same direction as T371265. In future we can use &:dir( ltr ) and &:dir( rtl ) as we do in new codes but as that isn't supported on all browsers we support. Change-Id: Icf6b8e184ce981e6e8f16dafa9e14a19154ff0e3 --- modules/ext.categoryTree.styles.less | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ext.categoryTree.styles.less b/modules/ext.categoryTree.styles.less index 8f8063d2..cd2da985 100644 --- a/modules/ext.categoryTree.styles.less +++ b/modules/ext.categoryTree.styles.less @@ -120,13 +120,13 @@ .CategoryTreeEmptyBullet, .CategoryTreeToggle[ aria-expanded='false' ] { - .mw-content-ltr &, - .mw-content-rtl .mw-content-ltr & { + [ dir='ltr' ] &, + [ dir='rtl' ] [ dir='ltr' ] & { transform: rotate( -90deg ); } - .mw-content-rtl &, - .mw-content-ltr .mw-content-rtl & { + [ dir='rtl' ] &, + [ dir='ltr' ] [ dir='rtl' ] & { transform: rotate( 90deg ); } }