@rogieking/figui3 8.8.0 → 8.8.1
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/components.css +4 -1
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +1 -1
- package/fig.js +7 -2
- package/package.json +1 -1
package/fig.js
CHANGED
|
@@ -16611,8 +16611,13 @@ class FigIcon extends HTMLElement {
|
|
|
16611
16611
|
}
|
|
16612
16612
|
|
|
16613
16613
|
const color = figIconColorValue(this.getAttribute("color"));
|
|
16614
|
-
if (color)
|
|
16615
|
-
|
|
16614
|
+
if (color) {
|
|
16615
|
+
this.style.backgroundColor = color;
|
|
16616
|
+
this.style.setProperty("--icon-color", color);
|
|
16617
|
+
} else {
|
|
16618
|
+
this.style.removeProperty("background-color");
|
|
16619
|
+
this.style.removeProperty("--icon-color");
|
|
16620
|
+
}
|
|
16616
16621
|
|
|
16617
16622
|
if (!this.hasAttribute("aria-hidden")) {
|
|
16618
16623
|
this.setAttribute("aria-hidden", "true");
|
package/package.json
CHANGED