Skip to content

Commit

Permalink
Adapt to use the new popup select
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Jan 16, 2025
1 parent 43143a8 commit 5d055c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fontra/views/editor/panel-designspace-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 };
}
),
];
Expand Down Expand Up @@ -1343,7 +1343,7 @@ export default class DesignspaceNavigationPanel extends Panel {
`,
},
[
...labeledPopUpMenu(
...labeledPopupSelect(
"Location Base:",
nameController,
"locationBase",
Expand Down

0 comments on commit 5d055c0

Please sign in to comment.