From 99406da6e455ac1084d8dd947f36270b48c0f6b0 Mon Sep 17 00:00:00 2001 From: Vikrantpalle Date: Fri, 26 Jul 2024 22:24:20 +0530 Subject: [PATCH] remove fontFamily style --- packages/mermaid/src/diagrams/treeView/styles.ts | 4 +--- packages/mermaid/src/diagrams/treeView/types.ts | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/mermaid/src/diagrams/treeView/styles.ts b/packages/mermaid/src/diagrams/treeView/styles.ts index 4b70f393ce..19c04a175d 100644 --- a/packages/mermaid/src/diagrams/treeView/styles.ts +++ b/packages/mermaid/src/diagrams/treeView/styles.ts @@ -5,7 +5,6 @@ import type { TreeViewDiagramStyles } from './types.js'; const defaultTreeViewDiagramStyles: Required = { fontSize: '16px', lineColor: 'black', - fontFamily: 'trebuchet ms",verdana,arial,sans-serif', }; const styles: DiagramStylesProvider = ({ @@ -13,11 +12,10 @@ const styles: DiagramStylesProvider = ({ }: { treeView?: TreeViewDiagramStyles; }): string => { - const { fontSize, lineColor, fontFamily } = cleanAndMerge(defaultTreeViewDiagramStyles, treeView); + const { fontSize, lineColor } = cleanAndMerge(defaultTreeViewDiagramStyles, treeView); return ` .treeView-node-label { font-size: ${fontSize}; - font-family: ${fontFamily}; } .treeView-node-line { stroke: ${lineColor}; diff --git a/packages/mermaid/src/diagrams/treeView/types.ts b/packages/mermaid/src/diagrams/treeView/types.ts index def0fefe19..2cccec3860 100644 --- a/packages/mermaid/src/diagrams/treeView/types.ts +++ b/packages/mermaid/src/diagrams/treeView/types.ts @@ -25,7 +25,6 @@ export interface TreeViewDB extends DiagramDBBase { export interface TreeViewDiagramStyles { fontSize?: string; - fontFamily?: string; lineColor?: string; }