Merge pull request #463 from vanillajonathan/patch-1

Add ARIA attribute to button
pull/464/head
Jeroen Akkerman 2 years ago committed by GitHub
commit 45e0f36685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save