Skip to content

Commit

Permalink
style: improve Menu :focus-visible style
Browse files Browse the repository at this point in the history
ref #34005
  • Loading branch information
afc163 committed Feb 11, 2022
1 parent 0c422fe commit b3337dc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions components/menu/style/index.less
Expand Up @@ -5,10 +5,6 @@
@menu-prefix-cls: ~'@{ant-prefix}-menu';
@menu-animation-duration-normal: 0.15s;

.accessibility-focus() {
box-shadow: 0 0 0 2px @primary-1;
}

// TODO: Should remove icon style compatible in v5

// default theme
Expand All @@ -30,7 +26,7 @@
.clearfix();

&&-root:focus-visible {
.accessibility-focus();
box-shadow: 0 0 0 2px @primary-2;
}

ul,
Expand Down Expand Up @@ -243,10 +239,6 @@
margin-right: 0;
}
}

&:focus-visible {
.accessibility-focus();
}
}

& > &-item-divider {
Expand Down

0 comments on commit b3337dc

Please sign in to comment.