Rename classes to match id

This commit is contained in:
Mendel Konikov
2019-02-08 10:46:32 -05:00
parent 174a80c377
commit c6ee54c2f5
+2 -2
View File
@@ -35,7 +35,7 @@ export default class Snackbar {
this.el.id = 'coral-notif';
const closeButton = document.createElement('div');
closeButton.className = 'snackbar-close';
closeButton.className = 'coral-notif-close';
for (let key in CLOSE_STYLE) {
closeButton.style[key] = CLOSE_STYLE[key];
}
@@ -43,7 +43,7 @@ export default class Snackbar {
closeButton.onclick = () => this.clear();
this.snackbarText = document.createElement('div');
this.snackbarText.className = 'snackbar-text';
this.snackbarText.className = 'coral-notif-text';
this.snackbarText.style.paddingBottom = '12px';
this.el.appendChild(this.snackbarText);
this.el.appendChild(closeButton);