@rogieking/figui3 1.6.6 → 1.6.7

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 CHANGED
@@ -1867,6 +1867,7 @@ dialog,
1867
1867
  padding: 0;
1868
1868
  outline: 0;
1869
1869
  border: 0;
1870
+ inset: auto;
1870
1871
  color: var(--figma-color-text);
1871
1872
  border-radius: var(--radius-large, 0.8125rem);
1872
1873
  background: var(--figma-color-bg);
@@ -1981,7 +1982,8 @@ dialog[is="fig-dialog"] {
1981
1982
  }
1982
1983
 
1983
1984
  /* Tooltip */
1984
- fig-tooltip {
1985
+ fig-tooltip,
1986
+ fig-popover {
1985
1987
  display: contents;
1986
1988
  }
1987
1989
  .fig-tooltip {
package/example.html CHANGED
@@ -25,6 +25,19 @@
25
25
 
26
26
  <h2><label>Effects/</label>UI3 Components</h2>
27
27
  </fig-header>
28
+
29
+ <fig-popover action="click"
30
+ size="large">
31
+ <fig-button>
32
+ Hover me
33
+ </fig-button>
34
+ <div popover>
35
+ <fig-button>
36
+ Test
37
+ </fig-button>
38
+ </div>
39
+ </fig-popover>
40
+
28
41
  <fig-content>
29
42
 
30
43
  <br /><br /><br /><br /><br /><br /><br /><br /><br />
package/fig.js CHANGED
@@ -411,15 +411,13 @@ class FigPopover extends FigTooltip {
411
411
  this.delay = parseInt(this.getAttribute("delay")) || 0;
412
412
  }
413
413
  render() {
414
- //this.destroy()
415
- //if (!this.popup) {
414
+ this.destroy();
416
415
  this.popup = this.popup || this.querySelector("[popover]");
417
416
  this.popup.setAttribute("class", "fig-popover");
418
417
  this.popup.style.position = "fixed";
419
- this.popup.style.display = "block";
420
- this.popup.style.pointerEvents = "none";
418
+ this.popup.style.visibility = "hidden";
419
+ this.popup.style.display = "inline-flex";
421
420
  document.body.append(this.popup);
422
- //}
423
421
  }
424
422
 
425
423
  destroy() {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {