@vaadin/vaadin-themable-mixin
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -12,3 +12,3 @@ { | ||
"name": "@vaadin/vaadin-themable-mixin", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"main": "vaadin-themable-mixin.js", | ||
@@ -15,0 +15,0 @@ "author": "Vaadin Ltd", |
@@ -40,5 +40,14 @@ import { DomModule } from '@polymer/polymer/lib/elements/dom-module.js'; | ||
const vaadinThemePrefixes = ['lumo-', 'material-']; | ||
const vaadinThemeA = vaadinThemePrefixes.filter(prefix => moduleNameA.indexOf(prefix) === 0).length > 0; | ||
const vaadinThemeB = vaadinThemePrefixes.filter(prefix => moduleNameB.indexOf(prefix) === 0).length > 0; | ||
if (vaadinA !== vaadinB) { | ||
// Include vaadin core styles first | ||
return vaadinA ? -1 : 1; | ||
} else if (vaadinThemeA !== vaadinThemeB) { | ||
// Include vaadin theme styles after that | ||
return vaadinThemeA ? -1 : 1; | ||
} else { | ||
// Lastly include custom styles so they override all vaadin styles | ||
return 0; | ||
@@ -45,0 +54,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29355
97