From 2eeab123287f28239c860ace584fc6b73f2882ea Mon Sep 17 00:00:00 2001 From: Hai Nguyen Date: Sun, 19 Oct 2014 19:00:49 -0500 Subject: [PATCH] Fixes #8 - Prevent text selection highlights Added styles to prevent icons and text on buttons to get highlight on double click. --- docs/dist/less/components/icon.less | 3 +++ docs/dist/less/components/paper-button.less | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/dist/less/components/icon.less b/docs/dist/less/components/icon.less index a1825669098304..65a901f0e230c9 100644 --- a/docs/dist/less/components/icon.less +++ b/docs/dist/less/components/icon.less @@ -4,6 +4,9 @@ position: relative; cursor: pointer; + //To fix text selection on double click + .lh-user-select(none); + .mui-icon-highlight { width: @icon-highlight-size; height: @icon-highlight-size; diff --git a/docs/dist/less/components/paper-button.less b/docs/dist/less/components/paper-button.less index 7a9c3009fe7ff0..8733572883fdf3 100644 --- a/docs/dist/less/components/paper-button.less +++ b/docs/dist/less/components/paper-button.less @@ -10,6 +10,9 @@ .mui-font-style-button; .ease-out(300ms); + //To fix text selection on double click + .lh-user-select(none); + margin: 0; display: inline-block; height: @paper-button-height;