@vaadin/vaadin-context-menu
Advanced tools
Comparing version 4.3.10 to 4.3.11
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-context-menu", | ||
"version": "4.3.10", | ||
"version": "4.3.11", | ||
"main": "vaadin-context-menu.js", | ||
@@ -16,0 +16,0 @@ "author": "Vaadin Ltd", |
@@ -266,3 +266,3 @@ /** | ||
static get version() { | ||
return '4.3.10'; | ||
return '4.3.11'; | ||
} | ||
@@ -269,0 +269,0 @@ |
@@ -324,4 +324,3 @@ import { ItemElement } from '@vaadin/vaadin-item/src/vaadin-item.js'; | ||
const openEvent = this._touch ? 'touchstart' : 'mouseover'; | ||
menu.$.overlay.addEventListener(openEvent, openSubMenu); | ||
menu.$.overlay.addEventListener('mouseover', openSubMenu); | ||
menu.$.overlay.addEventListener('keydown', e => | ||
@@ -328,0 +327,0 @@ (e.keyCode === 39 || e.keyCode === 13 || e.keyCode === 32) && openSubMenu(e)); |
@@ -74,3 +74,4 @@ import '@vaadin/vaadin-lumo-styles/spacing.js'; | ||
[part="items"] ::slotted(.vaadin-menu-item:hover:not([disabled])) { | ||
[part="items"] ::slotted(.vaadin-menu-item:hover:not([disabled])), | ||
[part="items"] ::slotted(.vaadin-menu-item[expanded]:not([disabled])) { | ||
background-color: var(--lumo-primary-color-10pct); | ||
@@ -82,3 +83,3 @@ } | ||
@media (pointer: coarse) { | ||
[part="items"] ::slotted(.vaadin-menu-item:hover:not([disabled])) { | ||
[part="items"] ::slotted(.vaadin-menu-item:hover:not([expanded]):not([disabled])) { | ||
background-color: transparent; | ||
@@ -85,0 +86,0 @@ } |
65689