@rogieking/figui3 8.9.4 → 8.9.6
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/README.md +11 -1
- package/components.css +10 -9
- package/dist/components.css +1 -1
- package/dist/fig-lab.js +1 -1
- package/dist/fig.css +1 -1
- package/fig-lab.js +2 -0
- package/package.json +1 -1
package/fig-lab.js
CHANGED
|
@@ -1387,6 +1387,7 @@ class PropskitSelect extends HTMLElement {
|
|
|
1387
1387
|
#initialize() {
|
|
1388
1388
|
this.#initialValue = this.getAttribute("value") ?? "";
|
|
1389
1389
|
const customLabel = this.querySelector(":scope > label");
|
|
1390
|
+
const customOptions = this.querySelector(":scope > fig-select-options");
|
|
1390
1391
|
const field = document.createElement("fig-field");
|
|
1391
1392
|
const label = customLabel || document.createElement("label");
|
|
1392
1393
|
this.#usesFigSelect = PropskitSelect.#canUseFigSelect();
|
|
@@ -1395,6 +1396,7 @@ class PropskitSelect extends HTMLElement {
|
|
|
1395
1396
|
);
|
|
1396
1397
|
// Match menu/control width to the full-surface field.
|
|
1397
1398
|
select.setAttribute("full", "");
|
|
1399
|
+
if (this.#usesFigSelect && customOptions) select.append(customOptions);
|
|
1398
1400
|
field.append(label, select);
|
|
1399
1401
|
this.#field = field;
|
|
1400
1402
|
this.#label = label;
|
package/package.json
CHANGED