View Full Version : yunselectable mouse cursor...

22 Dec 2006, 10:09 AM
The "yunselectable" class doesn't change the cursor which is a bit ugly - eg. if you make some text unselectable and move the mouse over it you get an I-beam (text select) type of cursor making it look like you can select the text which, of course, you can't.

A simple fix is to tweak yui-ext.css as follows:

-moz-user-select: none;
-khtml-user-select: none;
cursor: default;

Adding the "cursor: default;" ensures that the default "arrow" type cursor is used :)

From my tests so far, this doesn't conflict with anything else. If it does conflict with something, the cursor can easily be overriden by using a more specific bit of custom CSS.

22 Dec 2006, 2:17 PM
I changed it. I just hope it doesn't override to many cursor:pointer spots.