From 3712832a03bb6c2691d253042730decfd52cfb58 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Thu, 28 May 2020 10:04:29 +0800 Subject: [PATCH] style: optimize cascader rtl style (#24520) --- components/cascader/style/rtl.less | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/components/cascader/style/rtl.less b/components/cascader/style/rtl.less index f249379fbd..842b264b40 100644 --- a/components/cascader/style/rtl.less +++ b/components/cascader/style/rtl.less @@ -51,15 +51,21 @@ } &-menu { - &-rtl { + &-rtl & { direction: rtl; border-right: none; border-left: @border-width-base @border-style-base @border-color-split; + &:first-child { + border-radius: 0 @border-radius-base @border-radius-base 0; + } &:last-child { margin-right: 0; margin-left: -1px; border-left-color: transparent; - border-radius: 0 0 4px 4px; + border-radius: @border-radius-base 0 0 @border-radius-base; + } + &:only-child { + border-radius: @border-radius-base; } } }