@rogieking/figui3 1.0.69 → 1.0.70

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/fig.css +4 -1
  2. package/fig.js +3 -3
  3. package/package.json +1 -1
package/fig.css CHANGED
@@ -1376,11 +1376,14 @@ details {
1376
1376
  color: var(--figma-color-text-secondary);
1377
1377
 
1378
1378
  &::before {
1379
- content: var(--icon-chevron);
1379
+ content: "";
1380
+ mask-image: var(--icon-chevron);
1380
1381
  display: inline-flex;
1382
+ background: var(--figma-color-text-secondary);
1381
1383
  align-items: start;
1382
1384
  justify-content: center;
1383
1385
  width: 1rem;
1386
+ height: 1rem;
1384
1387
  transform: rotate(-90deg);
1385
1388
  transition: transform var(--transition-duration)
1386
1389
  var(--transition-timing-function);
package/fig.js CHANGED
@@ -217,15 +217,15 @@ class FigTooltip extends HTMLElement {
217
217
 
218
218
  destroy() {
219
219
  if (this.popup) {
220
- //this.popup.remove();
220
+ this.popup.remove();
221
221
  }
222
222
  document.body.addEventListener("click", this.hidePopupOutsideClick);
223
223
  }
224
224
 
225
225
  setupEventListeners() {
226
226
  if (this.action === "hover") {
227
- this.addEventListener("mouseenter", this.showDelayedPopup.bind(this));
228
- this.addEventListener("mouseleave", this.hidePopup.bind(this));
227
+ this.addEventListener("pointerenter", this.showDelayedPopup.bind(this));
228
+ this.addEventListener("pointerleave", this.hidePopup.bind(this));
229
229
  } else if (this.action === "click") {
230
230
  this.addEventListener("click", this.showDelayedPopup.bind(this));
231
231
  document.body.addEventListener(
package/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.0.69"
3
+ "version": "1.0.70"
4
4
  }