@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.
- package/dist/fig.js +1 -1
- package/fig.js +5 -0
- 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