Virtual whiteboard for sketching hand-drawn like diagrams
refactor: Converting span to kbd tag (#2774)
Rafi511eb6222813
diff --git a/src/components/ContextMenu.scss b/src/components/ContextMenu.scssindex fe8059e09d..913a7ecc8f 100644--- a/src/components/ContextMenu.scss+++ b/src/components/ContextMenu.scss@@ -54,6 +54,7 @@.context-menu-option__shortcut {justify-self: end;opacity: 0.6;+ font-family: inherit;font-size: 0.7rem;}}diff --git a/src/components/ContextMenu.tsx b/src/components/ContextMenu.tsxindex 27d14d880d..e8ec950727 100644--- a/src/components/ContextMenu.tsx+++ b/src/components/ContextMenu.tsx@@ -52,11 +52,11 @@ const ContextMenu = ({ options, onCloseRequest, top, left }: Props) => {onClick={action}><div className="context-menu-option__label">{label}</div>- <div className="context-menu-option__shortcut">+ <kbd className="context-menu-option__shortcut">{shortcutName? getShortcutFromShortcutName(shortcutName): ""}- </div>+ </kbd></button></li>))}diff --git a/src/components/ShortcutsDialog.scss b/src/components/ShortcutsDialog.scssindex 2feb38fbf2..6cb6898c37 100644--- a/src/components/ShortcutsDialog.scss+++ b/src/components/ShortcutsDialog.scss@@ -29,6 +29,7 @@box-sizing: border-box;display: flex;align-items: center;+ font-family: inherit;}.ShortcutsDialog-footer {diff --git a/src/components/ShortcutsDialog.tsx b/src/components/ShortcutsDialog.tsxindex ff9327d90d..15c57bb2ef 100644--- a/src/components/ShortcutsDialog.tsx+++ b/src/components/ShortcutsDialog.tsx@@ -82,7 +82,7 @@ Shortcut.defaultProps = {};const ShortcutKey = (props: { children: React.ReactNode }) => (- <span className="ShorcutsDialog-key" {...props} />+ <kbd className="ShorcutsDialog-key" {...props} />);const Footer = () => (