@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/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) this.style.backgroundColor = color;
16615
- else this.style.removeProperty("background-color");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "8.8.0",
3
+ "version": "8.8.1",
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",