@vaadin/context-menu 23.0.0-beta3 → 23.0.0-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/context-menu",
|
|
3
|
-
"version": "23.0.0-
|
|
3
|
+
"version": "23.0.0-rc1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
37
|
"@polymer/polymer": "^3.0.0",
|
|
38
|
-
"@vaadin/component-base": "23.0.0-
|
|
39
|
-
"@vaadin/item": "23.0.0-
|
|
40
|
-
"@vaadin/list-box": "23.0.0-
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "23.0.0-
|
|
42
|
-
"@vaadin/vaadin-material-styles": "23.0.0-
|
|
43
|
-
"@vaadin/vaadin-overlay": "23.0.0-
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "23.0.0-
|
|
38
|
+
"@vaadin/component-base": "23.0.0-rc1",
|
|
39
|
+
"@vaadin/item": "23.0.0-rc1",
|
|
40
|
+
"@vaadin/list-box": "23.0.0-rc1",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "23.0.0-rc1",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "23.0.0-rc1",
|
|
43
|
+
"@vaadin/vaadin-overlay": "23.0.0-rc1",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "23.0.0-rc1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@esm-bundle/chai": "^4.3.4",
|
|
48
|
-
"@vaadin/polymer-legacy-adapter": "23.0.0-
|
|
48
|
+
"@vaadin/polymer-legacy-adapter": "23.0.0-rc1",
|
|
49
49
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
50
50
|
"sinon": "^9.2.1"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "d241fd5b3627efd671e6db25f33f2e69795011d3"
|
|
53
53
|
}
|
|
@@ -243,9 +243,11 @@ export const ItemsMixin = (superClass) =>
|
|
|
243
243
|
|
|
244
244
|
/** @protected */
|
|
245
245
|
_setMenuItemTheme(component, item, hostTheme) {
|
|
246
|
-
|
|
246
|
+
// Use existing component theme when it is provided
|
|
247
|
+
let theme = component.getAttribute('theme') || hostTheme;
|
|
247
248
|
|
|
248
|
-
//
|
|
249
|
+
// Item theme takes precedence over host theme / component theme
|
|
250
|
+
// even if it's empty, as long as it's not undefined or null
|
|
249
251
|
if (item.theme != null) {
|
|
250
252
|
theme = Array.isArray(item.theme) ? item.theme.join(' ') : item.theme;
|
|
251
253
|
}
|