Skip to content

Commit

Permalink
Merge pull request #22 from bunturx/master
Browse files Browse the repository at this point in the history
fix(core): Incorrectly setting button text
  • Loading branch information
polonel authored Nov 5, 2018
2 parents be73499 + 1b51aa4 commit 509dd8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/snackbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@
var secondButton = document.createElement('button');
secondButton.className = 'action';
secondButton.innerHTML = options.secondButtonText;
secondButton.innerHTML = options.secondButtonAria;
secondButton.setAttribute('aria-label', secondButtonAria);
secondButton.setAttribute('aria-label', options.secondButtonAria)
secondButton.style.color = options.secondButtonTextColor;
secondButton.addEventListener('click', function() {
options.onSecondButtonClick(Snackbar.snackbar);
Expand Down

0 comments on commit 509dd8d

Please sign in to comment.