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%);