you can't do this because pointer-events: none;
disable all mouse functions, but you can do a trick and wrap your button with a div
then use cursor: not-allowed;
on this.
.pointer-events-none {
pointer-events: none;
}
.wrapper {
cursor: not-allowed;
}
<div class="wrapper">
<button class="pointer-events-none">Some Text</button>
</div>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…