mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-08-02 06:44:28 -06:00
Merge pull request #463 from vanillajonathan/patch-1
Add ARIA attribute to button
This commit is contained in:
commit
45e0f36685
@ -250,6 +250,10 @@ function createToolbarButton(options, enableActions, enableTooltips, shortcuts,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.title) {
|
||||||
|
el.setAttribute('aria-label', options.title);
|
||||||
|
}
|
||||||
|
|
||||||
if (options.noDisable) {
|
if (options.noDisable) {
|
||||||
el.classList.add('no-disable');
|
el.classList.add('no-disable');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user