diff --git a/src/components/ExportDialog.tsx b/src/components/ExportDialog.tsx index aeffa1cc..72d281cb 100644 --- a/src/components/ExportDialog.tsx +++ b/src/components/ExportDialog.tsx @@ -4,7 +4,7 @@ import React, { useState, useEffect, useRef } from "react"; import { Modal } from "./Modal"; import { ToolButton } from "./ToolButton"; -import { clipboard, exportFile, downloadFile, svgFile, link } from "./icons"; +import { clipboard, exportFile, link } from "./icons"; import { Island } from "./Island"; import { ExcalidrawElement } from "../element/types"; import { AppState } from "../types"; @@ -133,7 +133,7 @@ function ExportModal({ onExportToPng(exportedElements, scale)} @@ -141,7 +141,7 @@ function ExportModal({ /> onExportToSvg(exportedElements, scale)} diff --git a/src/components/ToolButton.tsx b/src/components/ToolButton.tsx index 8416448a..6e401a02 100644 --- a/src/components/ToolButton.tsx +++ b/src/components/ToolButton.tsx @@ -5,9 +5,10 @@ import React from "react"; type ToolIconSize = "s" | "m"; type ToolButtonBaseProps = { - icon: React.ReactNode; + icon?: React.ReactNode; "aria-label": string; "aria-keyshortcuts"?: string; + label?: string; title?: string; name?: string; id?: string; @@ -44,7 +45,7 @@ export const ToolButton = React.forwardRef(function( ref={innerRef} > ); diff --git a/src/components/ToolIcon.scss b/src/components/ToolIcon.scss index d4314fcf..5f054504 100644 --- a/src/components/ToolIcon.scss +++ b/src/components/ToolIcon.scss @@ -1,6 +1,7 @@ .ToolIcon { display: inline-block; position: relative; + font-family: Cascadia; cursor: pointer; } diff --git a/src/components/icons.tsx b/src/components/icons.tsx index 3a9822e4..6bb3e123 100644 --- a/src/components/icons.tsx +++ b/src/components/icons.tsx @@ -76,21 +76,3 @@ export const exportFile = ( /> ); - -export const downloadFile = ( - -); - -export const svgFile = ( - -);