diff --git a/components/tree/style/mixin.less b/components/tree/style/mixin.less index 20f85cdc98..bfb9f78cce 100644 --- a/components/tree/style/mixin.less +++ b/components/tree/style/mixin.less @@ -94,17 +94,17 @@ } // >>> Switcher - & &-switcher { + &-switcher { .antTreeSwitcherIcon(); position: relative; flex: none; align-self: stretch; - width: @tree-title-height; margin: 0; line-height: @tree-title-height; text-align: center; cursor: pointer; + user-select: none; &-noop { cursor: default; @@ -241,6 +241,10 @@ .@{custom-tree-prefix-cls}-switcher { z-index: 1; background: @component-background; + + &-line-icon { + vertical-align: -.225em; + } } } } diff --git a/components/tree/style/rtl.less b/components/tree/style/rtl.less index 6e99ac6474..64581e1a10 100644 --- a/components/tree/style/rtl.less +++ b/components/tree/style/rtl.less @@ -19,7 +19,7 @@ } // >>> Switcher - & &-switcher { + &-switcher { &_close { .@{tree-prefix-cls}-switcher-icon { svg {