Use the assets pipeline to load inert.css (#28701)

This commit is contained in:
Renaud Chaput authored and GitHub committed 2024-01-12 09:32:45 +00:00
1 parent a90696011e
commit c6684aa1e3
3 files changed
+9 -1

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
/* Placeholder file to have `inert.scss` compiled by Webpack
This is used by the `wicg-inert` polyfill */
import '../styles/inert.scss';
+14
View File
@@ -0,0 +1,14 @@
/* This is needed for the wicg-inert polyfill */
[inert] {
pointer-events: none;
cursor: default;
}
[inert],
[inert] * {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}