Skip to content

Commit

Permalink
fix(sortable-table): Clicking on sortable header doesn't select text
Browse files Browse the repository at this point in the history
[Fixes #103050640]

Signed-off-by: Matt Royal <mroyal@pivotal.io>
  • Loading branch information
Kenny Wang authored and matt-royal committed Sep 10, 2015
1 parent c786d96 commit a9ec8a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/pivotal-ui/components/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,12 @@
}
}
}

@mixin no-select {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
2 changes: 2 additions & 0 deletions src/pivotal-ui/components/tables/tables.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "../pui-variables";
@import "../mixins";

/*doc
---
Expand Down Expand Up @@ -308,6 +309,7 @@ We are making the assumption here that table-hover will *only* be used if the ta
}

.sortable, [sortable] { // latter selector is angular only
@include no-select;
cursor: pointer;
&:after {
margin-left: 4px;
Expand Down

0 comments on commit a9ec8a0

Please sign in to comment.