Skip to content

Commit 82c8869

Browse files
authored
Merge pull request #897 from lionralfs/feature/pointer-events-ie10-fixes
Fix pointer-events in IE8-IE10
2 parents 7dc94fd + 336d796 commit 82c8869

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/sweetalert.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,29 @@
8787
transform: scale(1);
8888
}
8989
}
90+
91+
/*
92+
Target IE8-IE10 due to incompability with the css `pointer-event` property.
93+
@see https://github.com/t4t5/sweetalert/issues/863
94+
*/
95+
@media screen\0 {
96+
.swal-overlay {
97+
visibility: hidden;
98+
}
99+
100+
.swal-overlay--show-modal {
101+
visibility: visible;
102+
}
103+
104+
.swal-button__loader {
105+
visibility: hidden;
106+
}
107+
108+
.swal-overlay--show-modal .swal-modal {
109+
visibility: visible;
110+
}
111+
112+
.swal-modal {
113+
visibility: hidden;
114+
}
115+
}

0 commit comments

Comments
 (0)