material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

Rapidly pressing paper-buttons selects the label text

Open alexanderjeurissen opened this issue 12 years ago • 1 comments

I noticed this when testing the ripple effect of the paper-buttons. Double-clicking the button results in the inner label text getting selected.

screenshot: screen shot 2014-10-18 at 18 23 42

This is quite ugly, one way to prevent this from happening is adding some css to the inner label: All of the correct CSS variations are:

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

Buttons is one place where this is happening, This can be reproduced on your github.io page as well. Toolbar buttons also have this problem.

alexanderjeurissen avatar Oct 18 '14 16:10 alexanderjeurissen

Thanks for reporting the issue. I added styles to fix this for buttons and icons.

hai-cea avatar Oct 20 '14 00:10 hai-cea