Skip to content

Commit

Permalink
Fixes #8 - Prevent text selection highlights
Browse files Browse the repository at this point in the history
Added styles to prevent icons and text on buttons to get highlight on
double click.
  • Loading branch information
Hai Nguyen committed Oct 20, 2014
1 parent 0dffa25 commit 2eeab12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/dist/less/components/icon.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions docs/dist/less/components/paper-button.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2eeab12

Please sign in to comment.