From d49013468aed522b2984018446d354c9013c99c8 Mon Sep 17 00:00:00 2001 From: Hamed Mohammadzadeh <36853974+hmz22@users.noreply.github.com> Date: Thu, 7 Apr 2022 12:45:02 +0430 Subject: [PATCH] fix: not warpper animation for badge RTL (#34899) --- components/badge/style/rtl.less | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/components/badge/style/rtl.less b/components/badge/style/rtl.less index bfe948c962..276a6ef6ea 100644 --- a/components/badge/style/rtl.less +++ b/components/badge/style/rtl.less @@ -31,15 +31,13 @@ } } - &-zoom-appear, - &-zoom-enter { - .@{badge-prefix-cls}-rtl & { + &:not(&-not-a-wrapper).@{badge-prefix-cls}-rtl { + .@{badge-prefix-cls}-zoom-appear, + .@{badge-prefix-cls}-zoom-enter { animation-name: antZoomBadgeInRtl; } - } - &-zoom-leave { - .@{badge-prefix-cls}-rtl & { + .@{badge-prefix-cls}-zoom-leave { animation-name: antZoomBadgeOutRtl; } } @@ -79,7 +77,6 @@ } } - @keyframes antZoomBadgeInRtl { 0% { transform: scale(0) translate(-50%, -50%);