diff --git a/src/sidebar-item/index.less b/src/sidebar-item/index.less index 311c4f9c5..49b6cd2d9 100644 --- a/src/sidebar-item/index.less +++ b/src/sidebar-item/index.less @@ -40,10 +40,9 @@ position: absolute; top: 50%; left: 0; - width: 4px; - height: 16px; + width: @sidebar-selected-border-width; + height: @sidebar-selected-border-height; background-color: @sidebar-selected-border-color; - border-radius: @border-radius-md; transform: translateY(-50%); content: ''; } diff --git a/src/style/var.less b/src/style/var.less index c5663d999..3eced0583 100644 --- a/src/style/var.less +++ b/src/style/var.less @@ -626,6 +626,8 @@ @sidebar-background-color: @background-color; @sidebar-selected-font-weight: @font-weight-bold; @sidebar-selected-text-color: @text-color; +@sidebar-selected-border-width: 4px; +@sidebar-selected-border-height: 16px; @sidebar-selected-border-color: @red; @sidebar-selected-background-color: @white;