mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +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') {
|
||||
return;
|
||||
}
|
||||
let title_string = '';
|
||||
if (yy_parser.getTitle !== undefined) {
|
||||
title_string = yy_parser.getTitle();
|
||||
}
|
||||
let title_string = yy_parser.getTitle();
|
||||
let description = yy_parser.getAccDescription();
|
||||
svg.attr('role', 'img').attr('aria-labelledby', 'chart-title-' + id + ' chart-desc-' + id);
|
||||
svg
|
||||
|
Reference in New Issue
Block a user