File tree 2 files changed +5
-27
lines changed
2 files changed +5
-27
lines changed Original file line number Diff line number Diff line change 5
5
6
6
@mixin action-active {
7
7
li .action {
8
+ & :hover ,
8
9
& .active {
9
- background-color : var (--color-background-hover );
10
10
border-radius : 6px ;
11
11
padding : 0 ;
12
12
}
13
+
14
+ & :hover {
15
+ background-color : var (--color-background-hover );
16
+ }
13
17
}
14
18
}
15
19
Original file line number Diff line number Diff line change @@ -1424,31 +1424,6 @@ export default {
1424
1424
return this.$refs.menu.querySelectorAll(focusableSelector)
1425
1425
},
1426
1426
1427
- /**
1428
- * Focus nearest focusable item on mouse move.
1429
- * DO NOT change the focus if the target is already focused
1430
- * this will prevent issues with input being unfocused
1431
- * on mouse move
1432
- * @param {PointerEvent} event - The mouse move event
1433
- */
1434
- onMouseFocusAction(event) {
1435
- if (document?.activeElement === event.target) {
1436
- return
1437
- }
1438
-
1439
- const menuItem = event.target.closest('li')
1440
- if (menuItem && this.$refs.menu.contains(menuItem)) {
1441
- const focusableItem = menuItem.querySelector(focusableSelector)
1442
- if (focusableItem) {
1443
- const focusList = this.getFocusableMenuItemElements()
1444
- const focusIndex = [...focusList].indexOf(focusableItem)
1445
- if (focusIndex > -1) {
1446
- this.focusIndex = focusIndex
1447
- this.focusAction()
1448
- }
1449
- }
1450
- }
1451
- },
1452
1427
/**
1453
1428
* Dispatches the keydown listener to different handlers
1454
1429
*
@@ -1823,7 +1798,6 @@ export default {
1823
1798
},
1824
1799
tabindex: '-1',
1825
1800
onKeydown: this.onKeydown,
1826
- onMousemove: this.onMouseFocusAction,
1827
1801
ref: 'menu',
1828
1802
}, [
1829
1803
h('ul', {
You can’t perform that action at this time.
0 commit comments