diff --git a/core/src/components/button/button.md.scss b/core/src/components/button/button.md.scss
index f01520a164..a8493a2dbf 100644
--- a/core/src/components/button/button.md.scss
+++ b/core/src/components/button/button.md.scss
@@ -129,30 +129,29 @@
// Material Design Button: Hover
// --------------------------------------------------
+/**
+ * Only allow overriding of opacity here
+ * as developers should not be overriding
+ * colors when using the color prop.
+ */
+
:host(.button-solid.ion-color.ion-focused) .button-native::after {
background: #{current-color(contrast)};
-
- opacity: .24;
}
:host(.button-clear.ion-color.ion-focused) .button-native::after,
:host(.button-outline.ion-color.ion-focused) .button-native::after {
background: #{current-color(base)};
-
- opacity: .12;
}
+
@media (any-hover: hover) {
:host(.button-solid.ion-color:hover) .button-native::after {
background: #{current-color(contrast)};
-
- opacity: .08;
}
:host(.button-clear.ion-color:hover) .button-native::after,
:host(.button-outline.ion-color:hover) .button-native::after {
background: #{current-color(base)};
-
- opacity: .04;
}
}
diff --git a/core/src/components/button/test/outline/index.html b/core/src/components/button/test/outline/index.html
index 27db3c617a..0383bcb93a 100644
--- a/core/src/components/button/test/outline/index.html
+++ b/core/src/components/button/test/outline/index.html
@@ -90,6 +90,7 @@