Skip to content

Commit

Permalink
Axis label with axis.name, not axis.tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
ollimeier committed Oct 17, 2024
1 parent 335e98a commit c74f96d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/fontra/views/fontinfo/panel-cross-axis-mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,20 +454,18 @@ function buildElementLocations(controller, fontAxes) {
function buildElementLocationsLabel(fontAxes) {
let items = [];
for (const axis of fontAxes) {
items.push([axis.tag, axis.name]);
items.push([axis.name]);
}

return html.div(
{
class: "fontra-ui-font-info-cross-axis-mapping-panel-column-location",
},
items
.map(([labelName, dataTooltip]) => {
.map(([labelName]) => {
return html.label(
{
"style": "text-align: right;",
"data-tooltip": dataTooltip,
"data-tooltipposition": "left",
style: "text-align: right;",
},
[labelName]
);
Expand Down

0 comments on commit c74f96d

Please sign in to comment.