Skip to content

Commit

Permalink
remove fontFamily style
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikrantpalle committed Jul 26, 2024
1 parent 18f206e commit 99406da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions packages/mermaid/src/diagrams/treeView/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,17 @@ import type { TreeViewDiagramStyles } from './types.js';
const defaultTreeViewDiagramStyles: Required<TreeViewDiagramStyles> = {
fontSize: '16px',
lineColor: 'black',
fontFamily: 'trebuchet ms",verdana,arial,sans-serif',
};

const styles: DiagramStylesProvider = ({
treeView,
}: {
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};
Expand Down
1 change: 0 additions & 1 deletion packages/mermaid/src/diagrams/treeView/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export interface TreeViewDB extends DiagramDBBase<TreeViewDiagramConfig> {

export interface TreeViewDiagramStyles {
fontSize?: string;
fontFamily?: string;
lineColor?: string;
}

Expand Down

0 comments on commit 99406da

Please sign in to comment.