From cd9bbe793969376fcac8c5034f36d84f449c1894 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sun, 22 May 2022 00:17:53 +0200 Subject: [PATCH] Add ARIA attribute to button --- src/js/easymde.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/easymde.js b/src/js/easymde.js index 2393748..71fda79 100644 --- a/src/js/easymde.js +++ b/src/js/easymde.js @@ -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'); }