diff --git a/docs/src/App.vue b/docs/src/App.vue
index 1b5ce26..0973325 100644
--- a/docs/src/App.vue
+++ b/docs/src/App.vue
@@ -99,9 +99,9 @@
Sidenav
-
+
Spinner
@@ -303,7 +303,7 @@
transition: $swift-ease-out;
.main-content {
- transform: translate3D(0, 7%, 0);
+ transform: translate3D(0, 10%, 0);
}
}
diff --git a/docs/src/pages/components/Snackbar.vue b/docs/src/pages/components/Snackbar.vue
index bb3c4c4..eb11f93 100644
--- a/docs/src/pages/components/Snackbar.vue
+++ b/docs/src/pages/components/Snackbar.vue
@@ -163,6 +163,10 @@
+
+
+ add
+
diff --git a/src/components/mdButton/mdButton.scss b/src/components/mdButton/mdButton.scss
index a37deec..cf8220d 100644
--- a/src/components/mdButton/mdButton.scss
+++ b/src/components/mdButton/mdButton.scss
@@ -149,12 +149,14 @@ $button-icon-size: 40px;
position: absolute;
top: 16px;
left: 16px;
+ z-index: 10;
}
&.md-fab-top-center {
position: absolute;
top: 16px;
left: 50%;
+ z-index: 10;
transform: translateX(-50%);
}
@@ -162,12 +164,14 @@ $button-icon-size: 40px;
position: absolute;
top: 16px;
right: 16px;
+ z-index: 10;
}
&.md-fab-bottom-left {
position: absolute;
bottom: 16px;
left: 16px;
+ z-index: 10;
}
&.md-fab-bottom-center {
@@ -175,12 +179,14 @@ $button-icon-size: 40px;
bottom: 16px;
left: 50%;
transform: translateX(-50%);
+ z-index: 10;
}
&.md-fab-bottom-right {
position: absolute;
right: 16px;
bottom: 16px;
+ z-index: 10;
}
&.md-mini {
diff --git a/src/components/mdSnackbar/mdSnackbar.vue b/src/components/mdSnackbar/mdSnackbar.vue
index 5e8eb92..4381067 100644
--- a/src/components/mdSnackbar/mdSnackbar.vue
+++ b/src/components/mdSnackbar/mdSnackbar.vue
@@ -35,6 +35,7 @@
active: false,
rootElement: {},
snackbarElement: {},
+ directionClass: null,
closeTimeout: null
};
},
@@ -44,11 +45,24 @@
'md-active': this.active
};
- cssClasses['md-position-' + this.mdPosition.replace(/ /g, '-')] = true;
+ this.directionClass = this.mdPosition.replace(/ /g, '-');
+
+ cssClasses['md-position-' + this.directionClass] = true;
return cssClasses;
}
},
+ watch: {
+ active(active) {
+ const cssClass = 'md-has-toast-' + this.directionClass;
+
+ if (active) {
+ document.body.classList.add(cssClass);
+ } else {
+ document.body.classList.remove(cssClass);
+ }
+ }
+ },
methods: {
removeElement() {
this.rootElement.removeChild(this.snackbarElement);