Browse Source

🐛 Fix Menu behavior when hover gap (#23511)

close #13955
pull/23513/head
偏右 5 years ago
committed by GitHub
parent
commit
cd34b624b3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      components/menu/style/index.less

9
components/menu/style/index.less

@ -210,17 +210,26 @@
z-index: @zindex-dropdown;
border-radius: @border-radius-base;
// https://github.com/ant-design/ant-design/issues/13955
&::before {
position: absolute;
top: -7px;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.0001;
content: ' ';
}
}
// https://github.com/ant-design/ant-design/issues/13955
&-placement-rightTop::before {
top: 0;
left: -7px;
}
> .@{menu-prefix-cls} {
background-color: @menu-bg;
border-radius: @border-radius-base;

Loading…
Cancel
Save