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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user