-
Notifications
You must be signed in to change notification settings - Fork 9
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
Bugfix/remove selectors #91
Conversation
…e changes are not being applied
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A good start, thanks! 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, it looks like you used npm install
instead of pnpm install
. You'll want to delete this file.
See https://pnpm.io/ for docs on pnpm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-khtml-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://caniuse.com/?search=user-select: That SO answer is a good bit outdated. We can use user-select
on all major browsers now.
<slot /> | ||
<Image alt="" class="squiggle squiggle-right" src={src} /> | ||
<Image alt="" class="squiggle squiggle-right noselect" src={src} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both of these components already have their own squiggle
class. You can add the user-select
styles to that. There's no need to add a separate noselect
class.
.squiggle {
/* (existing styles) */
user-select: none;
}
👋 @abhijit360 do you still have energy + time to work on this? |
Yes! I will have the PR in this week |
(talked offline: may have time later) |
PR Checklist
status: accepting prs
Overview
Added a noselect class from this
stackoverflow
answer. I tested it locally and it appears to work