Skip to content

Commit 08324d7

Browse files
anderssonjohanadrianschmidt
authored andcommitted
fix(icon-button): remove sticky hover effect on non-mouse devices
1 parent 6aa0022 commit 08324d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: src/components/icon-button/icon-button.scss

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
@import '../../style/internal/mdc-variables';
33
@import '@limetech/mdc-icon-button/mdc-icon-button';
44

5+
@media (pointer: coarse) {
6+
.mdc-icon-button:hover::before {
7+
opacity: 0;
8+
}
9+
}
10+
511
/**
612
* @prop --icon-background-color: Background color when attribute `elevated` is set to `true`.
713
*/

0 commit comments

Comments
 (0)