From 5d055c04702a88f53c83e1ea1e51bfda3435ce51 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Thu, 16 Jan 2025 11:02:49 +0100 Subject: [PATCH] Adapt to use the new popup select --- src/fontra/views/editor/panel-designspace-navigation.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fontra/views/editor/panel-designspace-navigation.js b/src/fontra/views/editor/panel-designspace-navigation.js index c08db83e7..3526dae6b 100644 --- a/src/fontra/views/editor/panel-designspace-navigation.js +++ b/src/fontra/views/editor/panel-designspace-navigation.js @@ -4,7 +4,7 @@ import * as html from "/core/html-utils.js"; import { htmlToElement } from "/core/html-utils.js"; import { translate } from "/core/localization.js"; import { controllerKey, ObservableController } from "/core/observable-object.js"; -import { labeledPopUpMenu, labeledTextInput } from "/core/ui-utils.js"; +import { labeledPopupSelect, labeledTextInput } from "/core/ui-utils.js"; import { boolInt, enumerate, @@ -1249,10 +1249,10 @@ export default class DesignspaceNavigationPanel extends Panel { } const fontSourceMenuItems = [ - { identifier: "", value: "None" }, + { value: "", label: "None" }, ...Object.entries(this.fontController.sources).map( ([sourceIdentifier, source]) => { - return { identifier: sourceIdentifier, value: source.name }; + return { value: sourceIdentifier, label: source.name }; } ), ]; @@ -1343,7 +1343,7 @@ export default class DesignspaceNavigationPanel extends Panel { `, }, [ - ...labeledPopUpMenu( + ...labeledPopupSelect( "Location Base:", nameController, "locationBase",