mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-22 17:34:37 -06:00
Add ARIA attribute to button
This commit is contained in:
parent
611aa50443
commit
cd9bbe7939
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user