@rogieking/figui3 8.8.0 → 8.9.0
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 +6 -1
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +1 -1
- package/fig.js +8 -2
- package/package.json +1 -1
package/fig.js
CHANGED
|
@@ -16535,6 +16535,7 @@ const FIG_ICON_TOKENS = {
|
|
|
16535
16535
|
hidden: { medium: "--icon-24-hidden", small: "--icon-16-hidden" },
|
|
16536
16536
|
globe: { medium: "--icon-24-globe", small: "--icon-16-globe" },
|
|
16537
16537
|
warning: { medium: "--icon-24-warning", small: "--icon-16-warning" },
|
|
16538
|
+
copy: { medium: "--icon-24-copy", small: "--icon-16-copy" },
|
|
16538
16539
|
};
|
|
16539
16540
|
|
|
16540
16541
|
function figIconCssVar(name, size = "medium") {
|
|
@@ -16611,8 +16612,13 @@ class FigIcon extends HTMLElement {
|
|
|
16611
16612
|
}
|
|
16612
16613
|
|
|
16613
16614
|
const color = figIconColorValue(this.getAttribute("color"));
|
|
16614
|
-
if (color)
|
|
16615
|
-
|
|
16615
|
+
if (color) {
|
|
16616
|
+
this.style.backgroundColor = color;
|
|
16617
|
+
this.style.setProperty("--icon-color", color);
|
|
16618
|
+
} else {
|
|
16619
|
+
this.style.removeProperty("background-color");
|
|
16620
|
+
this.style.removeProperty("--icon-color");
|
|
16621
|
+
}
|
|
16616
16622
|
|
|
16617
16623
|
if (!this.hasAttribute("aria-hidden")) {
|
|
16618
16624
|
this.setAttribute("aria-hidden", "true");
|
package/package.json
CHANGED