Skip to content

Commit ed794b0

Browse files
committed
fix(ui): fix menu-indicator flash
It's a bug of chrome
1 parent f4e3a06 commit ed794b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/ui/src/styles/components/menu.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ $menu-item-height: 40px;
5858
&:not(.#{$rd-prefix}menu__item--horizontal) {
5959
@include e(indicator) {
6060
& > div::before {
61+
background-color: var(--#{$rd-prefix}color-primary);
6162
transform: scaleY(1);
6263
}
6364
}
@@ -168,7 +169,6 @@ $menu-item-height: 40px;
168169
width: 2px;
169170
height: calc(100% - 16px);
170171
content: '';
171-
background-color: var(--#{$rd-prefix}color-primary);
172172
transition: transform var(--#{$rd-prefix}animation-duration-base) linear;
173173
transform: scaleY(0);
174174
}

0 commit comments

Comments
 (0)