diff --git a/packages/mermaid/src/config.type.ts b/packages/mermaid/src/config.type.ts index 3b3ab4f59..faeda3eca 100644 --- a/packages/mermaid/src/config.type.ts +++ b/packages/mermaid/src/config.type.ts @@ -613,7 +613,7 @@ export interface JourneyDiagramConfig extends BaseDiagramConfig { */ titleFontFamily?: string; /** - * Font size in pixels to be used for the title text in Journey Diagrams + * Font size to be used for the title text in Journey Diagrams */ titleFontSize?: string; } diff --git a/packages/mermaid/src/schemas/config.schema.yaml b/packages/mermaid/src/schemas/config.schema.yaml index 35c1bfd51..716be1b71 100644 --- a/packages/mermaid/src/schemas/config.schema.yaml +++ b/packages/mermaid/src/schemas/config.schema.yaml @@ -1579,15 +1579,15 @@ $defs: # JSON Schema definition (maybe we should move these to a separate file) titleColor: description: Color of the title text in Journey Diagrams type: string - default: '#00ff00' + default: '' titleFontFamily: description: Font family to be used for the title text in Journey Diagrams type: string - default: '"Open Sans", sans-serif' + default: '"trebuchet ms", verdana, arial, sans-serif' titleFontSize: - description: Font size in pixels to be used for the title text in Journey Diagrams + description: Font size to be used for the title text in Journey Diagrams type: string - default: '32px' + default: '4ex' TimelineDiagramConfig: # added by https://github.com/mermaid-js/mermaid/commit/0d5246fbc730bf15463d7183fe4400a1e2fc492c