Skip to content

Commit

Permalink
updated packages
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Nov 2, 2018
1 parent b3f62cb commit 5f9a70c
Show file tree
Hide file tree
Showing 6 changed files with 1,080 additions and 907 deletions.
7 changes: 6 additions & 1 deletion dist/snackbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Snackbar v0.1.11
* Snackbar v0.1.12
* http://polonel.com/Snackbar
*
* Copyright 2018 Chris Brame and other contributors
Expand Down Expand Up @@ -29,9 +29,11 @@
width: 'auto',
showAction: true,
actionText: 'Dismiss',
actionTextAria:'Dismiss, Description for Screen Readers',
actionTextColor: '#4CAF50',
showSecondButton: false,
secondButtonText: '',
secondButtonAria:'Description for Screen Readers',
secondButtonTextColor: '#4CAF50',
backgroundColor: '#323232',
pos: 'bottom-left',
Expand Down Expand Up @@ -78,6 +80,8 @@
var secondButton = document.createElement('button');
secondButton.className = 'action';
secondButton.innerHTML = options.secondButtonText;
secondButton.innerHTML = options.secondButtonAria;
secondButton.setAttribute('aria-label',secondButtonAria);
secondButton.style.color = options.secondButtonTextColor;
secondButton.addEventListener('click', function() {
options.onSecondButtonClick(Snackbar.snackbar);
Expand All @@ -89,6 +93,7 @@
var actionButton = document.createElement('button');
actionButton.className = 'action';
actionButton.innerHTML = options.actionText;
actionButton.setAttribute('aria-label',actionTextAria);

This comment has been minimized.

Copy link
@IS-Kuan

IS-Kuan Nov 2, 2018

screenshot_20181102_162056
ReferenceError

actionButton.style.color = options.actionTextColor;
actionButton.addEventListener('click', function() {
options.onActionClick(Snackbar.snackbar);
Expand Down
6 changes: 3 additions & 3 deletions dist/snackbar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/snackbar.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5f9a70c

Please sign in to comment.