2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-30 05:14:28 -06:00

Merge pull request #463 from vanillajonathan/patch-1

Add ARIA attribute to button
This commit is contained in:
Jeroen Akkerman 2022-05-22 02:08:17 +02:00 committed by GitHub
commit 45e0f36685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,6 +250,10 @@ function createToolbarButton(options, enableActions, enableTooltips, shortcuts,
}
}
if (options.title) {
el.setAttribute('aria-label', options.title);
}
if (options.noDisable) {
el.classList.add('no-disable');
}