Skip to content

Commit

Permalink
make aria stuff more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Jan 29, 2018
1 parent 82e8556 commit f3f2e4c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Toolbar.ts
Expand Up @@ -127,15 +127,14 @@ export default class Toolbar {
buttonAriaAttr = ''
} else if (buttonIcon) {
buttonInnerHtml = "<span class='" + buttonIcon + "'></span>"
buttonAriaAttr = '" aria-label="' + buttonName
buttonAriaAttr = ' aria-label="' + buttonName + '"'
}

buttonEl = $( // type="button" so that it doesn't submit a form
'<button type="button" class="' + buttonClasses.join(' ') +
buttonAriaAttr + '">' +
buttonInnerHtml +
'</button>'
)
'<button type="button" class="' + buttonClasses.join(' ') + '"' +
buttonAriaAttr +
'>' + buttonInnerHtml + '</button>'
)
.click(function(ev) {
// don't process clicks for disabled buttons
if (!buttonEl.hasClass(theme.getClass('stateDisabled'))) {
Expand Down

0 comments on commit f3f2e4c

Please sign in to comment.