Skip to content

Commit

Permalink
Go to font axes editor with tool click
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed May 16, 2024
1 parent 2ea3a37 commit 4ea87bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/fontra/views/editor/panel-designspace-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ export default class DesignspaceNavigationPanel extends Panel {
makeAccordionHeaderButton({
icon: "tool",
tooltip: "Edit font axes",
// onclick: (event) => console.log("edit font axes"),
onclick: (event) => {
const url = new URL(window.location);
url.pathname = url.pathname.replace("/editor/", "/fontinfo/");
url.hash = "#axes-panel";
window.open(url.toString());
},
}),
makeAccordionHeaderButton({
icon: "refresh",
Expand Down

0 comments on commit 4ea87bf

Please sign in to comment.