@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/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) this.style.backgroundColor = color;
16615
- else this.style.removeProperty("background-color");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "8.8.0",
3
+ "version": "8.9.0",
4
4
  "description": "A lightweight web components library for building Figma plugin and widget UIs with native look and feel",
5
5
  "author": "Rogie King",
6
6
  "license": "MIT",