getbase/base

Feature request: .no-select

Closed this issue · 4 comments

Sorry to bother again, but perhaps such helper could come handy, especially when creating web apps:

.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
}

Btw, do you prefer pull request or it is better to post here?

Hey Roland,

Either or is fine. Thanks again for the great suggestions.

I have patched this in the latest release.

Cheers,

Matt

Hi,

thanks! Just tried and it works fine.

One thing though: the comment says "Select Box Reset", which is misleading imo. It is rather "Disable selection", so that one can't highlight text, and the cursor doesn't change to caret. So maybe the selector name should be also changed to ".no-selection", or something like this.

Here is a short screencap to clarify:
User select

Hey Roland,

I had a terrible brain fart.

I have corrected the issue.

Cheers,

Matthew

Nevermind, also I could have been more clear in the first post. Thanks for the update!