@proximus/lavender 2.0.0-alpha.117 → 2.0.0-alpha.118
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/dist/lavender.cjs.js +1 -1
- package/dist/lavender.es.js +5 -2
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -2163,6 +2163,7 @@ class Icon extends WithExtraAttributes {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
}
|
|
2165
2165
|
connectedCallback() {
|
|
2166
|
+
var _a;
|
|
2166
2167
|
this.role = "img";
|
|
2167
2168
|
const iconSet = document.querySelectorAll("px-icon-set");
|
|
2168
2169
|
if (!iconSet) {
|
|
@@ -2185,8 +2186,10 @@ class Icon extends WithExtraAttributes {
|
|
|
2185
2186
|
__privateGet(this, _internals).ariaHidden = "true";
|
|
2186
2187
|
this.ariaHidden = "true";
|
|
2187
2188
|
}
|
|
2188
|
-
if (this.parentElement.localName === "px-a" && this.slot !== "before" && this.slot !== "after") {
|
|
2189
|
-
this.
|
|
2189
|
+
if (((_a = this.parentElement) == null ? void 0 : _a.localName) === "px-a" && this.slot !== "before" && this.slot !== "after") {
|
|
2190
|
+
if (!this.color) {
|
|
2191
|
+
this.setAttribute("color", "inherit");
|
|
2192
|
+
}
|
|
2190
2193
|
}
|
|
2191
2194
|
}
|
|
2192
2195
|
updateAttribute(attrName, oldValue, newValue, attrValues) {
|