#3074 Cleanup and fixes for issues with accessibility for gantt and journey diagrams

This commit is contained in:
Knut Sveidqvist
2022-05-24 18:20:05 +02:00
parent 56f79692a3
commit 2ab1e162ea
33 changed files with 154 additions and 81 deletions

View File

@@ -7,7 +7,7 @@ import mermaidAPI from '../../mermaidAPI';
import common from '../common/common';
import {
setAccTitle,
getTitle,
getAccTitle,
getAccDescription,
setAccDescription,
clear as commonClear,
@@ -627,6 +627,14 @@ export const bindFunctions = function (element) {
});
};
const setDiagramTitle = function (txt) {
title = sanitizeText(txt);
};
const getDiagramTitle = function () {
return title;
};
export default {
parseDirective,
getConfig: () => configApi.getConfig().gantt,
@@ -642,7 +650,9 @@ export default {
setTodayMarker,
getTodayMarker,
setAccTitle,
getTitle,
getAccTitle,
setDiagramTitle,
getDiagramTitle,
setAccDescription,
getAccDescription,
addSection,