Disable pointer events on pseudo element

This disables pointer events on the pseudo element so that it won't block clicks to the content element.
This commit is contained in:
Jack Moore
2018-02-27 14:51:27 -05:00
committed by GitHub
parent 10b866ba17
commit 528be97e5b

View File

@ -25,6 +25,7 @@ Adds a fading gradient to an overflowing element to better indicate there is mor
width: 300px;
height: 25px;
background: linear-gradient(rgba(255, 255, 255, 0.001), white); /* transparent keyword is broken in Safari */
pointer-events: none;
}
.overflow-scroll-gradient__scroller {
overflow-y: scroll;
@ -58,6 +59,7 @@ Adds a fading gradient to an overflowing element to better indicate there is mor
width: 300px;
height: 25px;
bottom: 0;
pointer-events: none;
}
.snippet-demo__overflow-scroll-gradient__scroller {
overflow-y: scroll;