Skip to content

Commit

Permalink
Merge pull request Ionaru#463 from vanillajonathan/patch-1
Browse files Browse the repository at this point in the history
Add ARIA attribute to button
  • Loading branch information
Ionaru committed May 22, 2022
2 parents 611aa50 + cd9bbe7 commit 45e0f36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/easymde.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 45e0f36

Please sign in to comment.