@rogieking/figui3 9.4.6 → 9.4.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/CHANGELOG.md +7 -0
- package/dist/fig.js +1 -1
- package/fig.js +5 -1
- package/package.json +1 -1
package/fig.js
CHANGED
|
@@ -5256,7 +5256,11 @@ class FigToolbelt extends HTMLElement {
|
|
|
5256
5256
|
for (const slot of [this.#prependSlot, this.#appendSlot]) {
|
|
5257
5257
|
const hidden = slot.assignedElements({ flatten: true }).length === 0;
|
|
5258
5258
|
slot.hidden = hidden;
|
|
5259
|
-
|
|
5259
|
+
if (hidden) {
|
|
5260
|
+
slot.style.setProperty("display", "none", "important");
|
|
5261
|
+
} else {
|
|
5262
|
+
slot.style.removeProperty("display");
|
|
5263
|
+
}
|
|
5260
5264
|
}
|
|
5261
5265
|
}
|
|
5262
5266
|
|
package/package.json
CHANGED