From b94c73331166ed211b3e289c27e4b3ac42995e0d Mon Sep 17 00:00:00 2001 From: Olli Meier Date: Wed, 23 Oct 2024 16:18:13 +0200 Subject: [PATCH] Remove checkboxWithoutLabel and use labeledCheckbox instead --- src/fontra/client/core/ui-utils.js | 4 ---- src/fontra/views/fontinfo/panel-cross-axis-mapping.js | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/fontra/client/core/ui-utils.js b/src/fontra/client/core/ui-utils.js index 9b13205a0..7edad168a 100644 --- a/src/fontra/client/core/ui-utils.js +++ b/src/fontra/client/core/ui-utils.js @@ -94,10 +94,6 @@ function didReorder(a, b) { return false; } -export function checkboxWithoutLabel(controller, key, options) { - return labeledCheckbox(false, controller, key, options); -} - export function labeledCheckbox(label, controller, key, options) { const checkboxID = options?.id || `checkbox-${uniqueID()}-${key}`; const inputWrapper = html.div(); diff --git a/src/fontra/views/fontinfo/panel-cross-axis-mapping.js b/src/fontra/views/fontinfo/panel-cross-axis-mapping.js index b9b9ead23..9d29a1a4a 100644 --- a/src/fontra/views/fontinfo/panel-cross-axis-mapping.js +++ b/src/fontra/views/fontinfo/panel-cross-axis-mapping.js @@ -3,7 +3,7 @@ import * as html from "../core/html-utils.js"; import { addStyleSheet } from "../core/html-utils.js"; import { ObservableController } from "../core/observable-object.js"; import { - checkboxWithoutLabel, + labeledCheckbox, labeledTextInput, setupSortableList, } from "../core/ui-utils.js"; @@ -508,7 +508,7 @@ function buildElementLocationsLabel(axis) { } function buildElementLocationsCheckboxes(axis, controller, checkboxId) { - const element = checkboxWithoutLabel(controller, axis.name); + const element = labeledCheckbox(null, controller, axis.name); element.className = "fontra-ui-font-info-cross-axis-mapping-panel-checkboxes"; element.setAttribute( "data-tooltip",