Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possibile error is scss? #46

Open
saiballo opened this issue Dec 4, 2023 · 5 comments
Open

possibile error is scss? #46

saiballo opened this issue Dec 4, 2023 · 5 comments

Comments

@saiballo
Copy link

saiballo commented Dec 4, 2023

Hello,

I use scss instead of css in my project. I don't understand why in scss there is this rule:

.notifications-container {
pointer-events: none;
}

I can't close notification. Rules in css file are different and everything runs smooth

@saiballo
Copy link
Author

saiballo commented Feb 6, 2024

is this project still active?

@dgknca
Copy link
Member

dgknca commented Feb 16, 2024

Hi. I just published a new release. But an element with pointer-events: none; shouldn't have any effect on its children if you re-enable pointer events. You should be able to close it, it's totally irrelevant. Can you create a minimal reproducible example in jsfiddle or codepen I can peek at?

@saiballo
Copy link
Author

saiballo commented Feb 16, 2024

Thank you but "pointer-events: none" disable the functionality in a link. try this page:

https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events

(second example, try to click)

"To disable links using CSS, you can use the “pointer-events” property and set its value to “none”. This property allows you to control whether an element responds to mouse events such as clicks or hover"

https://www.w3docs.com/snippets/css/how-to-disable-links-on-the-current-page-using-only-css.html

@dgknca
Copy link
Member

dgknca commented Feb 16, 2024

I use pointer-events: none on .sn-notifications-container, it's just a grid to place the toasts and covers all viewport. Then I set pointer-events: auto on .sn-notify to re-enable pointer events. So you should be able to click to toasts or select its content. I'm not able to reproduce your case.

@saiballo
Copy link
Author

Ok, i'will try last release. thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants