mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-30 13:46:43 +02:00
revert change to accessibility.js
This commit is contained in:
@@ -12,10 +12,7 @@ export default function addSVGAccessibilityFields(yy_parser, svg, id) {
|
|||||||
if (typeof svg.insert == 'undefined') {
|
if (typeof svg.insert == 'undefined') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let title_string = '';
|
let title_string = yy_parser.getTitle();
|
||||||
if (yy_parser.getTitle !== undefined) {
|
|
||||||
title_string = yy_parser.getTitle();
|
|
||||||
}
|
|
||||||
let description = yy_parser.getAccDescription();
|
let description = yy_parser.getAccDescription();
|
||||||
svg.attr('role', 'img').attr('aria-labelledby', 'chart-title-' + id + ' chart-desc-' + id);
|
svg.attr('role', 'img').attr('aria-labelledby', 'chart-title-' + id + ' chart-desc-' + id);
|
||||||
svg
|
svg
|
||||||
|
Reference in New Issue
Block a user