We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dca00d commit 9758af3Copy full SHA for 9758af3
src/lib/button/button.scss
@@ -22,6 +22,16 @@
22
opacity: 1;
23
}
24
25
+// Disable the hover styles on non-hover devices. Since this is more of a progressive
26
+// enhancement and not all desktop browsers support this kind of media query, we can't
27
+// use something like `@media (hover)`.
28
+@media (hover: none) {
29
+ .mat-button:hover .mat-button-focus-overlay,
30
+ .mat-stroked-button:hover .mat-button-focus-overlay {
31
+ opacity: 0;
32
+ }
33
+}
34
+
35
.mat-raised-button {
36
@include mat-raised-button;
37
0 commit comments