mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
style: improve Menu :focus-visible style (#34008)
* style: improve Menu :focus-visible style ref #34005 * style: darken :focus-visible style
This commit is contained in:
parent
92d5820457
commit
fd2ebe57f7
@ -1,4 +1,19 @@
|
||||
.accessibility-focus-dark() {
|
||||
box-shadow: 0 0 0 2px @primary-7;
|
||||
}
|
||||
|
||||
.@{menu-prefix-cls} {
|
||||
&&-root:focus-visible {
|
||||
.accessibility-focus-dark();
|
||||
}
|
||||
|
||||
&-dark &-item,
|
||||
&-dark &-submenu-title {
|
||||
&:focus-visible {
|
||||
.accessibility-focus-dark();
|
||||
}
|
||||
}
|
||||
|
||||
// dark theme
|
||||
&&-dark,
|
||||
&-dark &-sub,
|
||||
|
@ -6,7 +6,7 @@
|
||||
@menu-animation-duration-normal: 0.15s;
|
||||
|
||||
.accessibility-focus() {
|
||||
box-shadow: 0 0 0 2px @primary-1;
|
||||
box-shadow: 0 0 0 2px @primary-2;
|
||||
}
|
||||
|
||||
// TODO: Should remove icon style compatible in v5
|
||||
|
Loading…
Reference in New Issue
Block a user