@rogieking/figui3 8.9.7 → 8.9.9

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.
Files changed (3) hide show
  1. package/dist/fig.js +1 -1
  2. package/fig.js +5 -0
  3. package/package.json +1 -1
package/fig.js CHANGED
@@ -18917,6 +18917,11 @@ class FigMenu extends HTMLElement {
18917
18917
  this.#popup.setAttribute("theme", "menu");
18918
18918
  this.#popup.setAttribute("role", "menu");
18919
18919
  this.#popup.setAttribute("id", this.#popup.getAttribute("id") || figUniqueId());
18920
+ // Top-layer via popover so the menu escapes ancestor filter/contain
18921
+ // (nested fig-popup with variant="popover" creates a fixed containing block).
18922
+ if ("popover" in HTMLElement.prototype) {
18923
+ this.#popup.setAttribute("popover", "manual");
18924
+ }
18920
18925
 
18921
18926
  const position = this.getAttribute("position") || "bottom left";
18922
18927
  this.#popup.setAttribute("position", position);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "8.9.7",
3
+ "version": "8.9.9",
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",